Skip to content

Commit

Permalink
Input: sh_keysc - 8x8 MODE_6 fix
Browse files Browse the repository at this point in the history
According to the data sheet for G4, AP4 and AG5 KEYSC MODE_6 is 8x8 keys.
Bump up MAXKEYS to 64 too.

Signed-off-by: Magnus Damm <damm@opensource.se>
Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Magnus Damm authored and Dmitry Torokhov committed Jun 18, 2011
1 parent b27af56 commit cca23d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/input/keyboard/sh_keysc.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static const struct {
[SH_KEYSC_MODE_3] = { 2, 4, 7 },
[SH_KEYSC_MODE_4] = { 3, 6, 6 },
[SH_KEYSC_MODE_5] = { 4, 6, 7 },
[SH_KEYSC_MODE_6] = { 5, 7, 7 },
[SH_KEYSC_MODE_6] = { 5, 8, 8 },
};

struct sh_keysc_priv {
Expand Down
2 changes: 1 addition & 1 deletion include/linux/input/sh_keysc.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __SH_KEYSC_H__
#define __SH_KEYSC_H__

#define SH_KEYSC_MAXKEYS 49
#define SH_KEYSC_MAXKEYS 64

struct sh_keysc_info {
enum { SH_KEYSC_MODE_1, SH_KEYSC_MODE_2, SH_KEYSC_MODE_3,
Expand Down

0 comments on commit cca23d0

Please sign in to comment.