summaryrefslogtreecommitdiffstats
path: root/drivers/misc/sony-laptop.c
diff options
context:
space:
mode:
authorMattia Dongili <malattia@linux.it>2008-01-14 10:05:46 +0100
committerLen Brown <len.brown@intel.com>2008-01-24 06:47:29 +0100
commitfccd5d00ba68455425a35f905fd92538429c310d (patch)
tree83c84f7f31034ae2c8e3baf7223d4ba3753d2c26 /drivers/misc/sony-laptop.c
parentsony-laptop: add Type4 model (diff)
downloadlinux-fccd5d00ba68455425a35f905fd92538429c310d.tar.xz
linux-fccd5d00ba68455425a35f905fd92538429c310d.zip
sony-laptop: fix scancode decode
compare against the sony_laptop specific event list index to decode the input scancode to send. Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/misc/sony-laptop.c')
-rw-r--r--drivers/misc/sony-laptop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c
index 70d5cc5969aa..899e3f75f288 100644
--- a/drivers/misc/sony-laptop.c
+++ b/drivers/misc/sony-laptop.c
@@ -315,7 +315,7 @@ static void sony_laptop_report_input_event(u8 event)
break;
default:
- if (event > ARRAY_SIZE (sony_laptop_input_keycode_map)) {
+ if (event > ARRAY_SIZE(sony_laptop_input_index)) {
dprintk("sony_laptop_report_input_event, event not known: %d\n", event);
break;
}