]> www.infradead.org Git - users/dwmw2/linux.git/commit
power: supply: core: constify power_supply_battery_info::ocv_table
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 5 Oct 2024 10:04:21 +0000 (12:04 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 15 Oct 2024 20:14:12 +0000 (22:14 +0200)
commitce20d5b9e37099a035ab34d4d3f59e1744756385
treee5bb2b52eba20250a6f0254d1cf3a62c776c4815
parent840683c341907b37173e270798607a83462118f1
power: supply: core: constify power_supply_battery_info::ocv_table

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