Re: [PATCH 02/10] [v3] input: gpio-keys: make legacy gpiolib optional
Bartosz Golaszewski <[email protected]>
| Newsgroups | gmane.linux.leds,gmane.linux.kernel,gmane.linux.kernel.wireless.general,gmane.linux.ports.arm.omap,gmane.linux.ports.arm.kernel,gmane.linux.ports.mips,gmane.linux.ports.sh.devel,gmane.linux.kernel.input,gmane.linux.network,gmane.linux.kernel.gpio |
|---|---|
| Message-ID | <CAMRc=Mf=JGOJUfs__HxxqTkiEk5NrkMX5J6RkO+=ybHUfWGShA@mail.gmail.com> |
On Wed, 20 May 2026 20:38:07 +0200, Arnd Bergmann <[email protected]> said: > From: Arnd Bergmann <[email protected]> > > 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 protected]/ > Link: https://lore.kernel.org/all/[email protected]/ > Signed-off-by: Arnd Bergmann <[email protected]> > --- Reviewed-by: Bartosz Golaszewski <[email protected]>