diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2024-10-05 12:04:19 +0200 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2024-10-15 22:14:12 +0200 |
| commit | 27fde3aa4f924793966c8aa5b10506c41ce933e1 (patch) | |
| tree | 1799089a4f1b8bc49eb8f9ea9ca54b7c2d71eb86 | |
| parent | 40d00fa5a8be87812a7acb6524eb3d8fd3ea42b9 (diff) | |
| download | linux-27fde3aa4f924793966c8aa5b10506c41ce933e1.tar.gz linux-27fde3aa4f924793966c8aa5b10506c41ce933e1.tar.bz2 linux-27fde3aa4f924793966c8aa5b10506c41ce933e1.zip | |
power: supply: samsung-sdi-battery: constify resistance 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-3-c1f721927048@weissschuh.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
| -rw-r--r-- | drivers/power/supply/samsung-sdi-battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/samsung-sdi-battery.c b/drivers/power/supply/samsung-sdi-battery.c index b63fd2758c2f..263592d62583 100644 --- a/drivers/power/supply/samsung-sdi-battery.c +++ b/drivers/power/supply/samsung-sdi-battery.c @@ -431,7 +431,7 @@ static const struct power_supply_vbat_ri_table samsung_vbat2res_charging_eb58515 * temperature compensation tables so we just state 100% for every temperature. * If you have the datasheets, please provide these tables. */ -static struct power_supply_resistance_temp_table samsung_temp2res[] = { +static const struct power_supply_resistance_temp_table samsung_temp2res[] = { { .temp = 50, .resistance = 100 }, { .temp = 40, .resistance = 100 }, { .temp = 30, .resistance = 100 }, |
