diff options
| author | Linus Walleij <linus.walleij@linaro.org> | 2015-03-27 12:28:16 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-04-03 20:08:59 -0400 |
| commit | 8b6f53c2f6d3d04c077e74fdb07130242a2d6f58 (patch) | |
| tree | 4b5d66b3cf61d3b45f1f8bd6297717c12e418ebd /include | |
| parent | bbdb38a22e8a5197a6db1e4d22d7e5c6c368e7f7 (diff) | |
Input: tc3589x - localize platform data
This driver can only get its platform data from the device tree, and all
platforms using it do that. Localize the platform data for the keypad. A
later patch will enforce the device tree / OF dependence.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/mfd/tc3589x.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/include/linux/mfd/tc3589x.h b/include/linux/mfd/tc3589x.h index c203c9c56776..468c31a27fcf 100644 --- a/include/linux/mfd/tc3589x.h +++ b/include/linux/mfd/tc3589x.h | |||
| @@ -140,36 +140,13 @@ extern int tc3589x_set_bits(struct tc3589x *tc3589x, u8 reg, u8 mask, u8 val); | |||
| 140 | #define TC_KPD_DEBOUNCE_PERIOD 0xA3 | 140 | #define TC_KPD_DEBOUNCE_PERIOD 0xA3 |
| 141 | #define TC_KPD_SETTLE_TIME 0xA3 | 141 | #define TC_KPD_SETTLE_TIME 0xA3 |
| 142 | 142 | ||
| 143 | /** | ||
| 144 | * struct tc35893_platform_data - data structure for platform specific data | ||
| 145 | * @keymap_data: matrix scan code table for keycodes | ||
| 146 | * @krow: mask for available rows, value is 0xFF | ||
| 147 | * @kcol: mask for available columns, value is 0xFF | ||
| 148 | * @debounce_period: platform specific debounce time | ||
| 149 | * @settle_time: platform specific settle down time | ||
| 150 | * @irqtype: type of interrupt, falling or rising edge | ||
| 151 | * @enable_wakeup: specifies if keypad event can wake up system from sleep | ||
| 152 | * @no_autorepeat: flag for auto repetition | ||
| 153 | */ | ||
| 154 | struct tc3589x_keypad_platform_data { | ||
| 155 | const struct matrix_keymap_data *keymap_data; | ||
| 156 | u8 krow; | ||
| 157 | u8 kcol; | ||
| 158 | u8 debounce_period; | ||
| 159 | u8 settle_time; | ||
| 160 | unsigned long irqtype; | ||
| 161 | bool enable_wakeup; | ||
| 162 | bool no_autorepeat; | ||
| 163 | }; | ||
| 164 | 143 | ||
| 165 | /** | 144 | /** |
| 166 | * struct tc3589x_platform_data - TC3589x platform data | 145 | * struct tc3589x_platform_data - TC3589x platform data |
| 167 | * @block: bitmask of blocks to enable (use TC3589x_BLOCK_*) | 146 | * @block: bitmask of blocks to enable (use TC3589x_BLOCK_*) |
| 168 | * @keypad: keypad-specific platform data | ||
| 169 | */ | 147 | */ |
| 170 | struct tc3589x_platform_data { | 148 | struct tc3589x_platform_data { |
| 171 | unsigned int block; | 149 | unsigned int block; |
| 172 | const struct tc3589x_keypad_platform_data *keypad; | ||
| 173 | }; | 150 | }; |
| 174 | 151 | ||
| 175 | #endif | 152 | #endif |
