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>
pull/1093/head^2
Thomas Weißschuh 2024-10-05 12:04:22 +02:00 committed by Sebastian Reichel
parent ce20d5b9e3
commit b7b6bf4445
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@
/* Default: temperature hysteresis */
#define AB8500_TEMP_HYSTERESIS 3
static struct power_supply_battery_ocv_table ocv_cap_tbl[] = {
static const struct power_supply_battery_ocv_table ocv_cap_tbl[] = {
{ .ocv = 4186000, .capacity = 100},
{ .ocv = 4163000, .capacity = 99},
{ .ocv = 4114000, .capacity = 95},