Skip to content

Commit 27fde3a

Browse files
t-8chsre
authored andcommitted
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>
1 parent 40d00fa commit 27fde3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/power/supply/samsung-sdi-battery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ static const struct power_supply_vbat_ri_table samsung_vbat2res_charging_eb58515
431431
* temperature compensation tables so we just state 100% for every temperature.
432432
* If you have the datasheets, please provide these tables.
433433
*/
434-
static struct power_supply_resistance_temp_table samsung_temp2res[] = {
434+
static const struct power_supply_resistance_temp_table samsung_temp2res[] = {
435435
{ .temp = 50, .resistance = 100 },
436436
{ .temp = 40, .resistance = 100 },
437437
{ .temp = 30, .resistance = 100 },

0 commit comments

Comments
 (0)