[PATCH v2 0/2] input: Supersede input_key_get_status() with input_is_key_pressed()

Sascha Hauer s.hauer at pengutronix.de
Mon May 11 00:26:51 PDT 2026


On Thu, 07 May 2026 15:48:22 +0200, Jonas Rebmann wrote:
> Reading a GPIO button via gpio-keys can be preferable over direct GPIO
> access as gpio-keys abstracts away from GPIO hardware via the
> devicetree, consistently across barebox and linux.
> 
> Trying to read a single key state analogous to prt_imx6_init_prtvt7
> failed as input_key_get_status should have been provided with the
> keycode in question plus one to ensure a large enough bitfield to
> contain the desired key state.
> 
> [...]

Applied, thanks!

[1/2] input: add input_is_key_pressed() to read single key
      https://git.pengutronix.de/cgit/barebox/commit/?id=aa1b345ec9fc (link may not be stable)
[2/2] ARM: boards: protonic-imx6: use input_is_key_pressed()
      https://git.pengutronix.de/cgit/barebox/commit/?id=949c0d352eb3 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list