]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: wm97xx_battery: Convert to GPIO descriptor
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 10 Jan 2021 23:45:08 +0000 (00:45 +0100)
committerSebastian Reichel <sre@kernel.org>
Wed, 13 Jan 2021 21:25:07 +0000 (22:25 +0100)
commitb6fc28f568a86176a8d57c021e499f89b5a26b0d
treed96b20e367affaf5b864361980767d4e8dec3c9a
parent2f6af7e9a6654f6fd3d395dd3c323d395159e368
power: supply: wm97xx_battery: Convert to GPIO descriptor

This converts the WM97xx driver to use a GPIO descriptor
instead of passing a GPIO number thru platform data.

Like everything else in the driver, use a simple local
variable for the descriptor, it can only ever appear in
one instance anyway so it should not hurt.

After converting the driver I noticed that none of the
boardfiles actually define a meaningful GPIO line for
this, but hey, it is converted.

Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
arch/arm/mach-pxa/mioa701.c
arch/arm/mach-pxa/palm27x.c
arch/arm/mach-pxa/palmte2.c
drivers/power/supply/wm97xx_battery.c
include/linux/wm97xx.h