]> www.infradead.org Git - users/dwmw2/linux.git/commit
power: supply: axp20x_battery: Make iio and battery config per device
authorChris Morgan <macromorgan@hotmail.com>
Wed, 21 Aug 2024 21:54:44 +0000 (16:54 -0500)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 27 Aug 2024 16:12:25 +0000 (18:12 +0200)
commitdb97fecb55cee4eed2f8dcdc17c4831719cbfe4d
tree0d0abc01b289839f692eae9dbf92d3d2babda034
parent61978807b00f8a1817b0e5580981af1cd2f428a5
power: supply: axp20x_battery: Make iio and battery config per device

Move the configuration of battery specific information and available
iio channels from the probe function to a device specific routine,
allowing us to use this driver for devices with slightly different
configurations (such as the AXP717).

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240821215456.962564-4-macroalpha82@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/axp20x_battery.c