mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
power: supply: ab8500: 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-2-c1f721927048@weissschuh.net Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
58797abed4
commit
40d00fa5a8
|
|
@ -48,7 +48,7 @@ static struct power_supply_battery_ocv_table ocv_cap_tbl[] = {
|
|||
* temperature values to work. Factory resistance is 300 mOhm and the
|
||||
* resistance values to the right are percentages of 300 mOhm.
|
||||
*/
|
||||
static struct power_supply_resistance_temp_table temp_to_batres_tbl_thermistor[] = {
|
||||
static const struct power_supply_resistance_temp_table temp_to_batres_tbl_thermistor[] = {
|
||||
{ .temp = 40, .resistance = 40 /* 120 mOhm */ },
|
||||
{ .temp = 30, .resistance = 45 /* 135 mOhm */ },
|
||||
{ .temp = 20, .resistance = 55 /* 165 mOhm */ },
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user