]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Fix Amstrad Delta omap-keypad usage
authorJonathan McDowell <noodles@earth.li>
Wed, 1 Nov 2006 20:02:14 +0000 (22:02 +0200)
committerTony Lindgren <tony@atomide.com>
Wed, 1 Nov 2006 20:02:14 +0000 (22:02 +0200)
On Fri, Oct 27, 2006 at 05:16:59PM +0100, Jonathan McDowell wrote:
> However having prodded further I'm seeing incorrect key parsing with
> the omap-keypad driver under both -rc2 and -rc3 (works fine in
> 2.6.18-omap1). Numerous keys now returns strings of characters rather
> than the single expected character. A few keys still work as expected
> however. Before I dig in further is anyone else seeing anything similar?

This appears to be due to the addition of keymapsize to the
omap_kp_platform_data structure. The patch below fixes things up for
the Delta; other boards appear to have already had this done.

Signed-off-by: Jonathan McDowell <noodles@earth.li>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/board-ams-delta.c

index 0a0c06fd2a6910ba07b144dca39a78e924fc10c5..c73ca61e585ef6f49385e8fc377a7a6974e12082 100644 (file)
@@ -187,10 +187,11 @@ static struct resource ams_delta_kp_resources[] = {
 };
 
 static struct omap_kp_platform_data ams_delta_kp_data = {
-       .rows   = 8,
-       .cols   = 8,
-       .keymap = ams_delta_keymap,
-       .rep    = 1,
+       .rows           = 8,
+       .cols           = 8,
+       .keymap         = ams_delta_keymap,
+       .keymapsize     = ARRAY_SIZE(ams_delta_keymap),
+       .delay          = 9,
 };
 
 static struct platform_device ams_delta_kp_device = {