]> git.baikalelectronics.ru Git - kernel.git/commit
Input: adp5589-keys - add support for the ADP5585 derivatives
authorMichael Hennerich <michael.hennerich@analog.com>
Wed, 19 Oct 2011 04:12:39 +0000 (21:12 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 19 Oct 2011 04:26:55 +0000 (21:26 -0700)
commit56b45c00dd943ce07fc88849b5139535e65219fa
tree3fd938a5bec641942439c719be5a1056c3b5730d
parentee77eb4d7de020cbe3a8f58f972fa37098b73220
Input: adp5589-keys - add support for the ADP5585 derivatives

The ADP5585 family keypad decoder and IO expander is similar to the ADP5589,
however it features less IO pins, and lacks hardware assisted key-lock
functionality. Unfortunately the register addresses are different, as well as
the event codes and bit organization within the port related registers.

Move ADP5589 Register defines from the header file into the main source file.
Add new defines while making sure we don't break existing platform_data.
Add register address translation, and turn device specific defines into variables.
Introduce some helper functions and disable functions that doesn't
exist on the added devices.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/Kconfig
drivers/input/keyboard/adp5589-keys.c
include/linux/input/adp5589.h