]> 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)
commitdf99abc07378b9e4954533a0099c89225561030a
treedc6e1946d56b79be2fbb099d761b1fb69a1378f4
parentd2640d3eb227f5440bebd78c55c77d75d3a3e68f
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