Skip to content

Commit 0811b8b

Browse files
javiercarrascocruzgroeck
authored andcommitted
hwmon: (gsc-hwmon) constify read-only struct regmap_bus
`gsc_hwmon_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: Guenter Roeck <[email protected]>
1 parent 99bf7c2 commit 0811b8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/gsc-hwmon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ struct gsc_hwmon_data {
3939
struct hwmon_chip_info chip;
4040
};
4141

42-
static struct regmap_bus gsc_hwmon_regmap_bus = {
42+
static const struct regmap_bus gsc_hwmon_regmap_bus = {
4343
.reg_read = gsc_read,
4444
.reg_write = gsc_write,
4545
};

0 commit comments

Comments
 (0)