Commit ef299323 authored by Javier Carrasco's avatar Javier Carrasco Committed by Lee Jones

mfd: mc13xxx-spi: Constify struct regmap_bus

`regmap_mc13xxx_bus` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: default avatarJavier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20240704-mfd-const-regmap_config-v2-23-0c8785b1331d@gmail.comSigned-off-by: default avatarLee Jones <lee@kernel.org>
parent 9bc6a6bb
......@@ -116,7 +116,7 @@ static int mc13xxx_spi_write(void *context, const void *data, size_t count)
* single transfer.
*/
static struct regmap_bus regmap_mc13xxx_bus = {
static const struct regmap_bus regmap_mc13xxx_bus = {
.write = mc13xxx_spi_write,
.read = mc13xxx_spi_read,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment