Subject: Re: [PATCH 02/10] [v3] input: gpio-keys: make legacy gpiolib optional

From: Dmitry Torokhov <[email-masked]>
Date: Thu, 28 May 2026 22:37:01 -0700

On Mon, May 25, 2026 at 10:57:44AM +0200, Linus Walleij wrote:
> On Wed, May 20, 2026 at 8:38 PM Arnd Bergmann <[email-masked]> wrote:
> 
> > From: Arnd Bergmann <[email-masked]>
> >
> > Most users of gpio-keys and gpio-keys-polled use modern gpiolib
> > interfaces, but there are still number of ancient sh, arm32 and x86
> > machines that have never been converted.
> >
> > Add an #ifdef block for the parts of the driver that are only used on
> > those legacy machines.
> >
> > The two Rohm PMIC drivers use a gpio-keys device without an actual GPIO,
> > passing an IRQ number instead. In order to keep this working both with
> > and with CONFIG_GPIOLIB_LEGACY, change the gpio-keys driver to ignore
> > the gpio number if an IRQ is passed.
> >
> > Link: https://lore.kernel.org/all/[email-masked]/
> > Link: https://lore.kernel.org/all/[email-masked]/
> > Signed-off-by: Arnd Bergmann <[email-masked]>
> 
> Reviewed-by: Linus Walleij <[email-masked]>

OK, if Lee Acks MFD changes I can pick this up.

Thanks.

-- 
Dmitry