sony-laptop: fix scancode decode
authorMattia Dongili <malattia@linux.it>
Mon, 14 Jan 2008 09:05:46 +0000 (18:05 +0900)
committerLen Brown <len.brown@intel.com>
Thu, 24 Jan 2008 05:47:29 +0000 (00:47 -0500)
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>
drivers/misc/sony-laptop.c

index 70d5cc5..899e3f7 100644 (file)
@@ -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;
                }