]> www.infradead.org Git - users/jedix/linux-maple.git/commit
power: supply: core: constify power_supply_battery_info::resist_table
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 5 Oct 2024 10:04:17 +0000 (12:04 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 15 Oct 2024 20:14:11 +0000 (22:14 +0200)
commit58797abed49d6b78c7af99b03b037f20c7ffb203
tree30a73e50452eab4e9bb46fc155f396eac67cafe5
parent9852d85ec9d492ebef56dc5f229416c925758edc
power: supply: core: constify power_supply_battery_info::resist_table

The power supply core never modifies the resist table.
Reflect this in the API, so drivers can mark their static tables as
const.

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-1-c1f721927048@weissschuh.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_core.c
include/linux/power_supply.h