diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap1/board-fsample.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-h2.c | 11 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-h3.c | 11 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-innovator.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-nokia770.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-osk.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-perseus2.c | 9 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-h4.c | 1 |
8 files changed, 41 insertions, 23 deletions
diff --git a/arch/arm/mach-omap1/board-fsample.c b/arch/arm/mach-omap1/board-fsample.c index c753a3c5aadd..62e42c7a628e 100644 --- a/arch/arm/mach-omap1/board-fsample.c +++ b/arch/arm/mach-omap1/board-fsample.c | |||
@@ -172,9 +172,11 @@ static struct resource kp_resources[] = { | |||
172 | }; | 172 | }; |
173 | 173 | ||
174 | static struct omap_kp_platform_data kp_data = { | 174 | static struct omap_kp_platform_data kp_data = { |
175 | .rows = 8, | 175 | .rows = 8, |
176 | .cols = 8, | 176 | .cols = 8, |
177 | .keymap = fsample_keymap, | 177 | .keymap = fsample_keymap, |
178 | .keymapsize = ARRAY_SIZE(fsample_keymap), | ||
179 | .delay = 4, | ||
178 | }; | 180 | }; |
179 | 181 | ||
180 | static struct platform_device kp_device = { | 182 | static struct platform_device kp_device = { |
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index cd3a06dfc0a8..6e113078f7ab 100644 --- a/arch/arm/mach-omap1/board-h2.c +++ b/arch/arm/mach-omap1/board-h2.c | |||
@@ -167,10 +167,13 @@ static struct resource h2_kp_resources[] = { | |||
167 | }; | 167 | }; |
168 | 168 | ||
169 | static struct omap_kp_platform_data h2_kp_data = { | 169 | static struct omap_kp_platform_data h2_kp_data = { |
170 | .rows = 8, | 170 | .rows = 8, |
171 | .cols = 8, | 171 | .cols = 8, |
172 | .keymap = h2_keymap, | 172 | .keymap = h2_keymap, |
173 | .rep = 1, | 173 | .keymapsize = ARRAY_SIZE(h2_keymap), |
174 | .rep = 1, | ||
175 | .delay = 9, | ||
176 | .dbounce = 1, | ||
174 | }; | 177 | }; |
175 | 178 | ||
176 | static struct platform_device h2_kp_device = { | 179 | static struct platform_device h2_kp_device = { |
diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c index 7b206116cd03..f225a083dee1 100644 --- a/arch/arm/mach-omap1/board-h3.c +++ b/arch/arm/mach-omap1/board-h3.c | |||
@@ -247,10 +247,13 @@ static struct resource h3_kp_resources[] = { | |||
247 | }; | 247 | }; |
248 | 248 | ||
249 | static struct omap_kp_platform_data h3_kp_data = { | 249 | static struct omap_kp_platform_data h3_kp_data = { |
250 | .rows = 8, | 250 | .rows = 8, |
251 | .cols = 8, | 251 | .cols = 8, |
252 | .keymap = h3_keymap, | 252 | .keymap = h3_keymap, |
253 | .rep = 1, | 253 | .keymapsize = ARRAY_SIZE(h3_keymap), |
254 | .rep = 1, | ||
255 | .delay = 9, | ||
256 | .dbounce = 1, | ||
254 | }; | 257 | }; |
255 | 258 | ||
256 | static struct platform_device h3_kp_device = { | 259 | static struct platform_device h3_kp_device = { |
diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c index 4cbc62db5b5d..cb00530ad279 100644 --- a/arch/arm/mach-omap1/board-innovator.c +++ b/arch/arm/mach-omap1/board-innovator.c | |||
@@ -159,9 +159,11 @@ static struct resource innovator_kp_resources[] = { | |||
159 | }; | 159 | }; |
160 | 160 | ||
161 | static struct omap_kp_platform_data innovator_kp_data = { | 161 | static struct omap_kp_platform_data innovator_kp_data = { |
162 | .rows = 8, | 162 | .rows = 8, |
163 | .cols = 8, | 163 | .cols = 8, |
164 | .keymap = innovator_keymap, | 164 | .keymap = innovator_keymap, |
165 | .keymapsize = ARRAY_SIZE(innovator_keymap), | ||
166 | .delay = 4, | ||
165 | }; | 167 | }; |
166 | 168 | ||
167 | static struct platform_device innovator_kp_device = { | 169 | static struct platform_device innovator_kp_device = { |
diff --git a/arch/arm/mach-omap1/board-nokia770.c b/arch/arm/mach-omap1/board-nokia770.c index 02b980d77b12..dbc555d209ff 100644 --- a/arch/arm/mach-omap1/board-nokia770.c +++ b/arch/arm/mach-omap1/board-nokia770.c | |||
@@ -71,9 +71,11 @@ static struct resource nokia770_kp_resources[] = { | |||
71 | }; | 71 | }; |
72 | 72 | ||
73 | static struct omap_kp_platform_data nokia770_kp_data = { | 73 | static struct omap_kp_platform_data nokia770_kp_data = { |
74 | .rows = 8, | 74 | .rows = 8, |
75 | .cols = 8, | 75 | .cols = 8, |
76 | .keymap = nokia770_keymap | 76 | .keymap = nokia770_keymap, |
77 | .keymapsize = ARRAY_SIZE(nokia770_keymap) | ||
78 | .delay = 4, | ||
77 | }; | 79 | }; |
78 | 80 | ||
79 | static struct platform_device nokia770_kp_device = { | 81 | static struct platform_device nokia770_kp_device = { |
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c index b742261c97ad..6b05647a6c01 100644 --- a/arch/arm/mach-omap1/board-osk.c +++ b/arch/arm/mach-omap1/board-osk.c | |||
@@ -266,9 +266,11 @@ static const int osk_keymap[] = { | |||
266 | }; | 266 | }; |
267 | 267 | ||
268 | static struct omap_kp_platform_data osk_kp_data = { | 268 | static struct omap_kp_platform_data osk_kp_data = { |
269 | .rows = 8, | 269 | .rows = 8, |
270 | .cols = 8, | 270 | .cols = 8, |
271 | .keymap = (int *) osk_keymap, | 271 | .keymap = (int *) osk_keymap, |
272 | .keymapsize = ARRAY_SIZE(osk_keymap), | ||
273 | .delay = 9, | ||
272 | }; | 274 | }; |
273 | 275 | ||
274 | static struct resource osk5912_kp_resources[] = { | 276 | static struct resource osk5912_kp_resources[] = { |
diff --git a/arch/arm/mach-omap1/board-perseus2.c b/arch/arm/mach-omap1/board-perseus2.c index 64b45d8ae357..fa4be962df67 100644 --- a/arch/arm/mach-omap1/board-perseus2.c +++ b/arch/arm/mach-omap1/board-perseus2.c | |||
@@ -171,9 +171,12 @@ static struct resource kp_resources[] = { | |||
171 | }; | 171 | }; |
172 | 172 | ||
173 | static struct omap_kp_platform_data kp_data = { | 173 | static struct omap_kp_platform_data kp_data = { |
174 | .rows = 8, | 174 | .rows = 8, |
175 | .cols = 8, | 175 | .cols = 8, |
176 | .keymap = p2_keymap, | 176 | .keymap = p2_keymap, |
177 | .keymapsize = ARRAY_SIZE(p2_keymap), | ||
178 | .delay = 4, | ||
179 | .dbounce = 1, | ||
177 | }; | 180 | }; |
178 | 181 | ||
179 | static struct platform_device kp_device = { | 182 | static struct platform_device kp_device = { |
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c index 4933fce766c8..996aeda1285d 100644 --- a/arch/arm/mach-omap2/board-h4.c +++ b/arch/arm/mach-omap2/board-h4.c | |||
@@ -245,6 +245,7 @@ static struct omap_kp_platform_data h4_kp_data = { | |||
245 | .rows = 6, | 245 | .rows = 6, |
246 | .cols = 7, | 246 | .cols = 7, |
247 | .keymap = h4_keymap, | 247 | .keymap = h4_keymap, |
248 | .keymapsize = ARRAY_SIZE(h4_keymap), | ||
248 | .rep = 1, | 249 | .rep = 1, |
249 | .row_gpios = row_gpios, | 250 | .row_gpios = row_gpios, |
250 | .col_gpios = col_gpios, | 251 | .col_gpios = col_gpios, |