On Wed, Aug 03, 2011 at 10:30:08AM +0200, Michael Hennerich wrote: > On 07/29/2011 03:00 PM, michael.hennerich@xxxxxxxxxx wrote: > >From: Michael Hennerich<michael.hennerich@xxxxxxxxxx> > > > >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@xxxxxxxxxx> > >--- > > drivers/input/keyboard/Kconfig | 4 +- > > drivers/input/keyboard/adp5589-keys.c | 607 ++++++++++++++++++++++++++------- > > include/linux/input/adp5589.h | 157 ++++----- > > 3 files changed, 549 insertions(+), 219 deletions(-) > > > Hi Dmitry, > > If you prefer support for the ADP5585 as separate driver, please let > me know. Hi Michael, No, I actually like this approach very much, but do you think we could have adp5589-keys.c, adp5585-keys.c and adp558x-keys-core.c? The register definitions put all in one file are a bit overwhelming... Thanks! -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html