Repository navigation
Commit fb5e4c3
Input: atmel_mxt_ts - improve T19 GPIO keys handling
* The mapping of the GPIO numbers into the T19 status byte varies between
different maXTouch chips. Some have up to 7 GPIOs. Allowing a keycode array
of up to 8 items is simpler and more generic. So replace #define with
configurable number of keys which also allows the removal of is_tp.
* Rename platform data parameters to include "t19" to prevent confusion with
T15 key array.
* Probe aborts early on when pdata is NULL, so no need to check.
* Move "int i" to beginning of function (mixed declarations and code)
* Use API calls rather than __set_bit()
* Remove unused dev variable.
Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Acked-by: Yufeng Shen <miletus@chromium.org>
Reviewed-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>1 parent 2cefdb1 commit fb5e4c3
3 files changed
Lines changed: 30 additions & 38 deletions
File tree
- drivers
- input/touchscreen
- platform/chrome
- include/linux/i2c
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | 183 | | |
190 | 184 | | |
191 | 185 | | |
| |||
250 | 244 | | |
251 | 245 | | |
252 | 246 | | |
253 | | - | |
254 | 247 | | |
255 | 248 | | |
256 | 249 | | |
| |||
515 | 508 | | |
516 | 509 | | |
517 | 510 | | |
| 511 | + | |
518 | 512 | | |
519 | 513 | | |
520 | 514 | | |
521 | 515 | | |
522 | | - | |
523 | | - | |
| 516 | + | |
| 517 | + | |
524 | 518 | | |
525 | | - | |
526 | | - | |
| 519 | + | |
| 520 | + | |
527 | 521 | | |
528 | 522 | | |
529 | 523 | | |
| |||
1084 | 1078 | | |
1085 | 1079 | | |
1086 | 1080 | | |
| 1081 | + | |
| 1082 | + | |
1087 | 1083 | | |
1088 | 1084 | | |
1089 | 1085 | | |
| |||
1096 | 1092 | | |
1097 | 1093 | | |
1098 | 1094 | | |
1099 | | - | |
1100 | | - | |
1101 | | - | |
1102 | | - | |
| 1095 | + | |
1103 | 1096 | | |
1104 | 1097 | | |
1105 | 1098 | | |
| |||
1125 | 1118 | | |
1126 | 1119 | | |
1127 | 1120 | | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
| 1121 | + | |
1131 | 1122 | | |
1132 | 1123 | | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
1136 | 1128 | | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
| 1129 | + | |
1142 | 1130 | | |
1143 | 1131 | | |
1144 | 1132 | | |
1145 | 1133 | | |
1146 | 1134 | | |
1147 | 1135 | | |
1148 | 1136 | | |
| 1137 | + | |
| 1138 | + | |
1149 | 1139 | | |
1150 | 1140 | | |
1151 | 1141 | | |
| |||
1158 | 1148 | | |
1159 | 1149 | | |
1160 | 1150 | | |
1161 | | - | |
| 1151 | + | |
1162 | 1152 | | |
1163 | 1153 | | |
1164 | 1154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
87 | 96 | | |
88 | 97 | | |
89 | 98 | | |
90 | 99 | | |
91 | 100 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 101 | + | |
| 102 | + | |
97 | 103 | | |
98 | 104 | | |
99 | 105 | | |
| |||
109 | 115 | | |
110 | 116 | | |
111 | 117 | | |
112 | | - | |
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 18 | | |
22 | 19 | | |
23 | 20 | | |
| |||
38 | 35 | | |
39 | 36 | | |
40 | 37 | | |
41 | | - | |
42 | | - | |
| 38 | + | |
| 39 | + | |
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
0 commit comments