]> www.infradead.org Git - users/jedix/linux-maple.git/commit
power: supply: axp20x_usb_power: Make VBUS and IIO config per device
authorChris Morgan <macromorgan@hotmail.com>
Wed, 21 Aug 2024 21:54:45 +0000 (16:54 -0500)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 27 Aug 2024 16:12:25 +0000 (18:12 +0200)
commitae640fc690353f6181740b50a0d6761bc67ebaa9
treedea88efe7c3669aaecebb1766efa081249a784d0
parentdb97fecb55cee4eed2f8dcdc17c4831719cbfe4d
power: supply: axp20x_usb_power: Make VBUS and IIO config per device

Make reading of the vbus value and configuring of the iio channels
device specific, to allow additional devices (such as the AXP717) to
be supported by this driver.

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