mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
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>
This commit is contained in:
parent
40d00fa5a8
commit
27fde3aa4f
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user