Input: adp5588-keys - add support for fw properties
Subsystems (2)
PATCH 1/1 Input: adp5588-keys - add support for fw properties
From: Nuno Sá <[email protected]>
[ Upstream commit 6704a86283b7e79ff7ae36d388466428f6672962 ]
Use firmware properties (eg: OF) to get the device specific configuration. This change just replaces the platform data since there was no platform using it and so, it makes no sense having both.
Special note to the PULL-UP disable setting that is now supported as part of the gpio subsystem (using 'set_config()' callback).
Signed-off-by Nuno Sá <[email protected]>
Reviewed-by Andy Shevchenko <[email protected]>
[In v5.10.226 IRQCHIP_IMMUTABLE is missing, replaced with (1 << 11)]
[In v5.10.226 GPIOCHIP_IRQ_RESOURCE_HELPERS is missing, removed, since there is initialization in gpiochip_set_irq_hooks]
[In v5.10.226 DEFINE_SIMPLE_DEV_PM_OPS is missing, replaced with static const struct dev_pm_ops]
Signed-off-by Dmitry Torokhov <[email protected]>
--- drivers/input/keyboard/Kconfig | 3 + drivers/input/keyboard/adp5588-keys.c | 849 ++++++++++++++++---------- include/linux/platform_data/adp5588.h | 171 ------ 3 files changed, 532 insertions(+), 491 deletions(-) delete mode 100644 include/linux/platform_data/adp5588.h
drivers/input/keyboard/Kconfig +3 -0
@@ -40,6 +40,9 @@ config KEYBOARD_ADP5520 config KEYBOARD_ADP5588 tristate "ADP5588/87 I2C QWERTY Keypad and IO Expander" depends on I2C + select GPIOLIB + select GPIOLIB_IRQCHIP + select INPUT_MATRIXKMAP help Say Y here if you want to use a ADP5588/87 attached to your system I2C bus.
drivers/input/keyboard/adp5588-keys.c +529 -320
1,115 lines not on this page · raw message
include/linux/platform_data/adp5588.h deleted +0 -171
171 lines not on this page · raw message
Signature · 1 line
2.25.1