Re: [PATCH] power: supply: wm97xx_battery: Convert to GPIO descriptor
From: Sebastian Reichel <hidden>
Date: 2021-01-13 22:09:53
Also in:
linux-pm
Hi, On Mon, Jan 11, 2021 at 08:24:30AM +0100, Daniel Mack wrote:
On 11/1/2021 12:45 am, Linus Walleij wrote:quoted
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: Daniel Mack <daniel@zonque.org> 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 <redacted>Reviewed-by: Daniel Mack <daniel@zonque.org> Can we probably merge this through Sebastian's tree? The chance for conflicts in this area is virtually non-existent.
Thanks, queued to power-supply's for-next branch via the following
immutable branch (which also contains the z2_battery change):
The following changes since commit 5c8fe583cce542aa0b84adc939ce85293de36e5e:
Linux 5.11-rc1 (2020-12-27 15:30:22 -0800)
are available in the Git repository at:
ssh://git@gitolite.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git tags/ib-psy-pxa-for-5.12-signed
for you to fetch changes up to cb6d6918c56ffd98e88164d5471f692d33dabf2b:
power: supply: wm97xx_battery: Convert to GPIO descriptor (2021-01-13 22:25:07 +0100)
----------------------------------------------------------------
Immutable branch between mach-pxa and power-supply for for 5.12
This immutable branch replaces legacy gpio API in wm97xx_battery and
z2_battery with new gpiod API, which involves the drivers in
power-supply and some mach-pxa board files.
Signed-off-by: Sebastian Reichel <sre@kernel.org>
----------------------------------------------------------------
Linus Walleij (2):
power: supply: z2_battery: Convert to GPIO descriptors
power: supply: wm97xx_battery: Convert to GPIO descriptor
arch/arm/mach-pxa/mioa701.c | 1 -
arch/arm/mach-pxa/palm27x.c | 1 -
arch/arm/mach-pxa/palmte2.c | 1 -
arch/arm/mach-pxa/z2.c | 12 ++++++++-
drivers/power/supply/wm97xx_battery.c | 45 +++++++++++++++-------------------
drivers/power/supply/z2_battery.c | 46 ++++++++++++++++-------------------
include/linux/wm97xx.h | 1 -
include/linux/z2_battery.h | 1 -
8 files changed, 51 insertions(+), 57 deletions(-)
-- Sebastian