diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-09-14 00:16:56 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-09-14 00:16:56 -0400 |
commit | fc8e1ead9314cf0e0f1922e661428b93d3a50d88 (patch) | |
tree | f3cb97c4769b74f6627a59769f1ed5c92a13c58a /include/linux/i2c | |
parent | 2bcaa6a4238094c5695d5b1943078388d82d3004 (diff) | |
parent | 9de48cc300fb10f7d9faa978670becf5e352462a (diff) |
Merge branch 'next' into for-linus
Diffstat (limited to 'include/linux/i2c')
-rw-r--r-- | include/linux/i2c/pca953x.h | 1 | ||||
-rw-r--r-- | include/linux/i2c/twl4030.h | 19 |
2 files changed, 14 insertions, 6 deletions
diff --git a/include/linux/i2c/pca953x.h b/include/linux/i2c/pca953x.h index 3c7361217df8..81736d6a8db7 100644 --- a/include/linux/i2c/pca953x.h +++ b/include/linux/i2c/pca953x.h | |||
@@ -15,4 +15,5 @@ struct pca953x_platform_data { | |||
15 | int (*teardown)(struct i2c_client *client, | 15 | int (*teardown)(struct i2c_client *client, |
16 | unsigned gpio, unsigned ngpio, | 16 | unsigned gpio, unsigned ngpio, |
17 | void *context); | 17 | void *context); |
18 | char **names; | ||
18 | }; | 19 | }; |
diff --git a/include/linux/i2c/twl4030.h b/include/linux/i2c/twl4030.h index 0dc80ef24975..3fd21d7cb6bf 100644 --- a/include/linux/i2c/twl4030.h +++ b/include/linux/i2c/twl4030.h | |||
@@ -25,6 +25,9 @@ | |||
25 | #ifndef __TWL4030_H_ | 25 | #ifndef __TWL4030_H_ |
26 | #define __TWL4030_H_ | 26 | #define __TWL4030_H_ |
27 | 27 | ||
28 | #include <linux/types.h> | ||
29 | #include <linux/input/matrix_keypad.h> | ||
30 | |||
28 | /* | 31 | /* |
29 | * Using the twl4030 core we address registers using a pair | 32 | * Using the twl4030 core we address registers using a pair |
30 | * { module id, relative register offset } | 33 | * { module id, relative register offset } |
@@ -302,13 +305,17 @@ struct twl4030_madc_platform_data { | |||
302 | int irq_line; | 305 | int irq_line; |
303 | }; | 306 | }; |
304 | 307 | ||
308 | /* Boards have uniqe mappings of {col, row} --> keycode. | ||
309 | * Column and row are 4 bits, but range only from 0..7. | ||
310 | * a PERSISTENT_KEY is "always on" and never reported. | ||
311 | */ | ||
312 | #define PERSISTENT_KEY(c, r) KEY((c), (r), KEY_RESERVED) | ||
313 | |||
305 | struct twl4030_keypad_data { | 314 | struct twl4030_keypad_data { |
306 | int rows; | 315 | const struct matrix_keymap_data *keymap_data; |
307 | int cols; | 316 | unsigned rows; |
308 | int *keymap; | 317 | unsigned cols; |
309 | int irq; | 318 | bool rep; |
310 | unsigned int keymapsize; | ||
311 | unsigned int rep:1; | ||
312 | }; | 319 | }; |
313 | 320 | ||
314 | enum twl4030_usb_mode { | 321 | enum twl4030_usb_mode { |