Forráskód Böngészése

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>
Mattia Dongili 17 éve
szülő
commit
fccd5d00ba
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      drivers/misc/sony-laptop.c

+ 1 - 1
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;
 		}