ARM: pxa: mainstone-wm97xx: use gpio lookup table
authorArnd Bergmann <arnd@arndb.de>
Wed, 11 Sep 2019 21:37:28 +0000 (23:37 +0200)
committerArnd Bergmann <arnd@arndb.de>
Sat, 7 May 2022 20:55:48 +0000 (22:55 +0200)
commit0ca7231fe3a98c61f3a87c4cb99082cbfa5210f0
treedf14c135f5090e0a7728ce6c713ef2a96c9fc771
parentf1131a46f37ea249e7190a1bc0845ee6a4c3f92e
ARM: pxa: mainstone-wm97xx: use gpio lookup table

This driver hardcodes gpio numbers without a header file.
Use lookup tables instead.

Cc: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-input@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-pxa/mainstone.c
arch/arm/mach-pxa/palmld.c
arch/arm/mach-pxa/palmt5.c
arch/arm/mach-pxa/palmtx.c
drivers/input/touchscreen/mainstone-wm97xx.c