Skip to content

Commit 9bc6a6b

Browse files
javiercarrascocruzlag-linaro
authored andcommitted
mfd: gateworks-gsc: Constify struct regmap_bus
`gsc_regmap_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 3062ba3 commit 9bc6a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/gateworks-gsc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ static const struct of_device_id gsc_of_match[] = {
160160
};
161161
MODULE_DEVICE_TABLE(of, gsc_of_match);
162162

163-
static struct regmap_bus gsc_regmap_bus = {
163+
static const struct regmap_bus gsc_regmap_bus = {
164164
.reg_read = gsc_read,
165165
.reg_write = gsc_write,
166166
};

0 commit comments

Comments
 (0)