Skip to content

Commit b7b6bf4

Browse files
t-8chsre
authored andcommitted
power: supply: ab8500: constify ocv table
The power supply core now allows this constification. Prevent accidental or malicious modification of the data. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20241005-power-supply-battery-const-v1-6-c1f721927048@weissschuh.net Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent ce20d5b commit b7b6bf4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/power/supply/ab8500_bmdata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/* Default: temperature hysteresis */
1717
#define AB8500_TEMP_HYSTERESIS 3
1818

19-
static struct power_supply_battery_ocv_table ocv_cap_tbl[] = {
19+
static const struct power_supply_battery_ocv_table ocv_cap_tbl[] = {
2020
{ .ocv = 4186000, .capacity = 100},
2121
{ .ocv = 4163000, .capacity = 99},
2222
{ .ocv = 4114000, .capacity = 95},

0 commit comments

Comments
 (0)