Procházet zdrojové kódy

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 před 17 roky
rodič
revize
fccd5d00ba
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;
 		}