]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ams_delta_serio: Replace power GPIO with regulator
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Thu, 21 Jun 2018 22:41:22 +0000 (00:41 +0200)
committerTony Lindgren <tony@atomide.com>
Mon, 2 Jul 2018 12:29:54 +0000 (05:29 -0700)
commit4e9aaa9a291c31929d039fd63e1f0a789c2e71c6
treedc6e1946d56b79be2fbb099d761b1fb69a1378f4
parent571a93cbf322cc45a4a693b9916abd433e83fc86
Input: ams_delta_serio: Replace power GPIO with regulator

Modify the driver so it no longer requests and manipulates the
"keybrd_pwr" GPIO pin but a "vcc" regulator supply instead.

For this to work with Amstrad Delta, define a regulator over the
"keybrd_pwr" GPIO pin with the "vcc" supply for ams-delta-serio device
and register it from the board file.  Both assign an absulute GPIO
number to the soon depreciated .gpio member of the regulator config
structure, and also build and register a GPIO lookup table so it is
ready for use by the regulator driver as soon as its upcoming update
is applied.

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/board-ams-delta.c
drivers/input/serio/ams_delta_serio.c