diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-24 22:56:58 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-24 22:56:58 -0400 |
| commit | 14738e03312ff1137109d68bcbf103c738af0f4a (patch) | |
| tree | 11d123823ec212973f0a9149b0da8ced1c8b8e33 /include/linux/mfd | |
| parent | 45471cd98decae5fced8b38e46c223f54a924814 (diff) | |
| parent | f7ebc4dcdeb1be7209d94a8c0dc602ab24e36ae1 (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input subsystem updates from Dmitry Torokhov:
"Thanks to Samuel Thibault input device (keyboard) LEDs are no longer
hardwired within the input core but use LED subsystem and so allow use
of different triggers; Hans de Goede did a large update for the ALPS
touchpad driver; we have new TI drv2665 haptics driver and DA9063
OnKey driver, and host of other drivers got various fixes"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (55 commits)
Input: pixcir_i2c_ts - fix receive error
MAINTAINERS: remove non existent input mt git tree
Input: improve usage of gpiod API
tty/vt/keyboard: define LED triggers for VT keyboard lock states
tty/vt/keyboard: define LED triggers for VT LED states
Input: export LEDs as class devices in sysfs
Input: cyttsp4 - use swap() in cyttsp4_get_touch()
Input: goodix - do not explicitly set evbits in input device
Input: goodix - export id and version read from device
Input: goodix - fix variable length array warning
Input: goodix - fix alignment issues
Input: add OnKey driver for DA9063 MFD part
Input: elan_i2c - add product IDs FW names
Input: elan_i2c - add support for multi IC type and iap format
Input: focaltech - report finger width to userspace
tty: remove platform_sysrq_reset_seq
Input: synaptics_i2c - use proper boolean values
Input: psmouse - use true instead of 1 for boolean values
Input: cyapa - fix a few typos in comments
Input: stmpe-ts - enforce device tree only mode
...
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/da9063/pdata.h | 1 | ||||
| -rw-r--r-- | include/linux/mfd/stmpe.h | 44 |
2 files changed, 1 insertions, 44 deletions
diff --git a/include/linux/mfd/da9063/pdata.h b/include/linux/mfd/da9063/pdata.h index 95c8742215a7..612383bd80ae 100644 --- a/include/linux/mfd/da9063/pdata.h +++ b/include/linux/mfd/da9063/pdata.h | |||
| @@ -103,6 +103,7 @@ struct da9063; | |||
| 103 | struct da9063_pdata { | 103 | struct da9063_pdata { |
| 104 | int (*init)(struct da9063 *da9063); | 104 | int (*init)(struct da9063 *da9063); |
| 105 | int irq_base; | 105 | int irq_base; |
| 106 | bool key_power; | ||
| 106 | unsigned flags; | 107 | unsigned flags; |
| 107 | struct da9063_regulators_pdata *regulators_pdata; | 108 | struct da9063_regulators_pdata *regulators_pdata; |
| 108 | struct led_platform_data *leds_pdata; | 109 | struct led_platform_data *leds_pdata; |
diff --git a/include/linux/mfd/stmpe.h b/include/linux/mfd/stmpe.h index c9d869027300..cb83883918a7 100644 --- a/include/linux/mfd/stmpe.h +++ b/include/linux/mfd/stmpe.h | |||
| @@ -118,47 +118,6 @@ extern int stmpe_disable(struct stmpe *stmpe, unsigned int blocks); | |||
| 118 | #define STMPE_GPIO_NOREQ_811_TOUCH (0xf0) | 118 | #define STMPE_GPIO_NOREQ_811_TOUCH (0xf0) |
| 119 | 119 | ||
| 120 | /** | 120 | /** |
| 121 | * struct stmpe_ts_platform_data - stmpe811 touch screen controller platform | ||
| 122 | * data | ||
| 123 | * @sample_time: ADC converstion time in number of clock. | ||
| 124 | * (0 -> 36 clocks, 1 -> 44 clocks, 2 -> 56 clocks, 3 -> 64 clocks, | ||
| 125 | * 4 -> 80 clocks, 5 -> 96 clocks, 6 -> 144 clocks), | ||
| 126 | * recommended is 4. | ||
| 127 | * @mod_12b: ADC Bit mode (0 -> 10bit ADC, 1 -> 12bit ADC) | ||
| 128 | * @ref_sel: ADC reference source | ||
| 129 | * (0 -> internal reference, 1 -> external reference) | ||
| 130 | * @adc_freq: ADC Clock speed | ||
| 131 | * (0 -> 1.625 MHz, 1 -> 3.25 MHz, 2 || 3 -> 6.5 MHz) | ||
| 132 | * @ave_ctrl: Sample average control | ||
| 133 | * (0 -> 1 sample, 1 -> 2 samples, 2 -> 4 samples, 3 -> 8 samples) | ||
| 134 | * @touch_det_delay: Touch detect interrupt delay | ||
| 135 | * (0 -> 10 us, 1 -> 50 us, 2 -> 100 us, 3 -> 500 us, | ||
| 136 | * 4-> 1 ms, 5 -> 5 ms, 6 -> 10 ms, 7 -> 50 ms) | ||
| 137 | * recommended is 3 | ||
| 138 | * @settling: Panel driver settling time | ||
| 139 | * (0 -> 10 us, 1 -> 100 us, 2 -> 500 us, 3 -> 1 ms, | ||
| 140 | * 4 -> 5 ms, 5 -> 10 ms, 6 for 50 ms, 7 -> 100 ms) | ||
| 141 | * recommended is 2 | ||
| 142 | * @fraction_z: Length of the fractional part in z | ||
| 143 | * (fraction_z ([0..7]) = Count of the fractional part) | ||
| 144 | * recommended is 7 | ||
| 145 | * @i_drive: current limit value of the touchscreen drivers | ||
| 146 | * (0 -> 20 mA typical 35 mA max, 1 -> 50 mA typical 80 mA max) | ||
| 147 | * | ||
| 148 | * */ | ||
| 149 | struct stmpe_ts_platform_data { | ||
| 150 | u8 sample_time; | ||
| 151 | u8 mod_12b; | ||
| 152 | u8 ref_sel; | ||
| 153 | u8 adc_freq; | ||
| 154 | u8 ave_ctrl; | ||
| 155 | u8 touch_det_delay; | ||
| 156 | u8 settling; | ||
| 157 | u8 fraction_z; | ||
| 158 | u8 i_drive; | ||
| 159 | }; | ||
| 160 | |||
| 161 | /** | ||
| 162 | * struct stmpe_platform_data - STMPE platform data | 121 | * struct stmpe_platform_data - STMPE platform data |
| 163 | * @id: device id to distinguish between multiple STMPEs on the same board | 122 | * @id: device id to distinguish between multiple STMPEs on the same board |
| 164 | * @blocks: bitmask of blocks to enable (use STMPE_BLOCK_*) | 123 | * @blocks: bitmask of blocks to enable (use STMPE_BLOCK_*) |
| @@ -168,7 +127,6 @@ struct stmpe_ts_platform_data { | |||
| 168 | * @irq_over_gpio: true if gpio is used to get irq | 127 | * @irq_over_gpio: true if gpio is used to get irq |
| 169 | * @irq_gpio: gpio number over which irq will be requested (significant only if | 128 | * @irq_gpio: gpio number over which irq will be requested (significant only if |
| 170 | * irq_over_gpio is true) | 129 | * irq_over_gpio is true) |
| 171 | * @ts: touchscreen-specific platform data | ||
| 172 | */ | 130 | */ |
| 173 | struct stmpe_platform_data { | 131 | struct stmpe_platform_data { |
| 174 | int id; | 132 | int id; |
| @@ -178,8 +136,6 @@ struct stmpe_platform_data { | |||
| 178 | bool irq_over_gpio; | 136 | bool irq_over_gpio; |
| 179 | int irq_gpio; | 137 | int irq_gpio; |
| 180 | int autosleep_timeout; | 138 | int autosleep_timeout; |
| 181 | |||
| 182 | struct stmpe_ts_platform_data *ts; | ||
| 183 | }; | 139 | }; |
| 184 | 140 | ||
| 185 | #endif | 141 | #endif |
