[PATCH 40/48] ARM: pxa: tosa: use gpio lookup for battery

Linus Walleij linus.walleij at linaro.org
Sat May 7 05:37:20 PDT 2022


On Tue, Apr 19, 2022 at 6:44 PM Arnd Bergmann <arnd at kernel.org> wrote:

> From: Arnd Bergmann <arnd at arndb.de>
>
> The battery driver uses a lot of GPIO lines, hardcoded from a
> machine header file.
>
> Change it to use a gpiod lookup table instead.
>
> Reviewed-by: Sebastian Reichel <sre at kernel.org>
> Acked-by: Sebastian Reichel <sre at kernel.org>
> Cc: linux-pm at vger.kernel.org
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>

Oh, I've been iterating a patch for the Tosa charging code
going down in MFD ans ASoC and all:
https://lore.kernel.org/linux-arm-kernel/20220125003741.492954-1-linus.walleij@linaro.org/

I just rebased this on v5.18-rc1 and resent with collected ACKs.

Please take a look at it, and see if you rather take that patch,
at some point I realized I had to go pretty deep around the
legacy code in different subsystems because the MFD device
us spawning a GPIO chip...

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list