sh: ms7724: modify scan_timing for KEYSC
authorKuninori Morimoto <morimoto.kuninori@renesas.com>
Wed, 24 Feb 2010 00:16:47 +0000 (00:16 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 25 Feb 2010 07:31:29 +0000 (16:31 +0900)
KEYSC::SCN register of SH7724 is 3bit.
Thus, scan_timing should be 0 - 7 here.

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boards/mach-se/7724/setup.c

index 6419f27..ee5251f 100644 (file)
@@ -313,7 +313,7 @@ static struct platform_device fsi_device = {
 /* KEYSC in SoC (Needs SW33-2 set to ON) */
 static struct sh_keysc_info keysc_info = {
        .mode = SH_KEYSC_MODE_1,
-       .scan_timing = 10,
+       .scan_timing = 3,
        .delay = 50,
        .keycodes = {
                KEY_1, KEY_2, KEY_3, KEY_4, KEY_5,