Skip to content

Commit

Permalink
Input: adp5589-keys - add support for the ADP5585 derivatives
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mhennerich authored and dtor committed Oct 19, 2011
1 parent 81e8f2b commit 3f48e73
Show file tree
Hide file tree
Showing 3 changed files with 550 additions and 220 deletions.
4 changes: 2 additions & 2 deletions drivers/input/keyboard/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ config KEYBOARD_ADP5588
module will be called adp5588-keys.

config KEYBOARD_ADP5589
tristate "ADP5589 I2C QWERTY Keypad and IO Expander"
tristate "ADP5585/ADP5589 I2C QWERTY Keypad and IO Expander"
depends on I2C
help
Say Y here if you want to use a ADP5589 attached to your
Say Y here if you want to use a ADP5585/ADP5589 attached to your
system I2C bus.

To compile this driver as a module, choose M here: the
Expand Down
Loading

0 comments on commit 3f48e73

Please sign in to comment.