summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/socket.h
diff options
context:
space:
mode:
authorEric Miao2008-01-31 06:58:37 +0100
committerDmitry Torokhov2008-01-31 06:58:37 +0100
commit1814db69698479eec2c000a43c83b5f263f6fbb6 (patch)
tree311c8980e0224d4842125ff1cf49c117f6d2a4e7 /include/asm-arm/socket.h
parentInput: pxa27x_keypad - remove pin configuration from the driver (diff)
downloadkernel-qcow2-linux-1814db69698479eec2c000a43c83b5f263f6fbb6.tar.gz
kernel-qcow2-linux-1814db69698479eec2c000a43c83b5f263f6fbb6.tar.xz
kernel-qcow2-linux-1814db69698479eec2c000a43c83b5f263f6fbb6.zip
Input: pxa27x_keypad - introduce driver structure and use KEY() to define matrix keys
1. Introduce the "struct pxa27x_keypad" structure for driver specific information, such as "struct clk", generated matrix key codes and so on 2. Use KEY() macro to define matrix keys, instead of original 8x8 map this makes definition easier with keypad where keys are sparse 3. Keep a generated array in "struct pxa27x_keypad" for fast lookup 4. Separate the matrix scan into a dedicated function for readability and report only those keys whose state has been changed, instead of report all states 5. Make use of KPAS to decide the faster path if only one key has been detected Signed-off-by: Eric Miao <eric.miao@marvell.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/asm-arm/socket.h')
0 files changed, 0 insertions, 0 deletions