Skip to content

Commit ef29932

Browse files
javiercarrascocruzlag-linaro
authored andcommitted
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: Javier Carrasco <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 9bc6a6b commit ef29932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/mc13xxx-spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static int mc13xxx_spi_write(void *context, const void *data, size_t count)
116116
* single transfer.
117117
*/
118118

119-
static struct regmap_bus regmap_mc13xxx_bus = {
119+
static const struct regmap_bus regmap_mc13xxx_bus = {
120120
.write = mc13xxx_spi_write,
121121
.read = mc13xxx_spi_read,
122122
};

0 commit comments

Comments
 (0)