• Eric Miao's avatar
    Input: pxa27x_keypad - enable rotary encoders and direct keys · 62059d9e
    Eric Miao authored
    1. Rotary encoder events can be configured either as relative events
       as the legacy code does or as any specified key code, this is
       useful on some platform which uses the rotary keys as
       KEY_{UP/DOWN/LEFT/RIGHT}
    
    2. Add support for direct keys, the corresponding keycodes for each
       direct key can now be specified within the platform data
    
    3. Remove the direct/rotary key detection code from the IRQ handler
       to dedicated functions to improve readability
    Signed-off-by: default avatarEric Miao <eric.miao@marvell.com>
    Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
    62059d9e
pxa27x_keypad.h 1.34 KB