From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mattia Dongili Subject: [PATCH] sony-laptop: fix scancode decode Date: Sun, 13 Jan 2008 13:12:34 +0900 Message-ID: <1200197554-9598-7-git-send-email-malattia@linux.it> References: <1200197554-9598-1-git-send-email-malattia@linux.it> <1200197554-9598-2-git-send-email-malattia@linux.it> <1200197554-9598-3-git-send-email-malattia@linux.it> <1200197554-9598-4-git-send-email-malattia@linux.it> <1200197554-9598-5-git-send-email-malattia@linux.it> <1200197554-9598-6-git-send-email-malattia@linux.it> Return-path: Received: from mfbichi11.ns.itscom.net ([219.110.2.189]:65341 "EHLO mfbichi11.ns.itscom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750909AbYAMHAt (ORCPT ); Sun, 13 Jan 2008 02:00:49 -0500 In-Reply-To: <1200197554-9598-6-git-send-email-malattia@linux.it> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Len Brown Cc: linux-acpi@vger.kernel.org, Mattia Dongili compare against the sony_laptop specific event list index to decode the input scancode to send. Signed-off-by: Mattia Dongili --- drivers/misc/sony-laptop.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index 4089751..96157f7 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; } -- 1.5.3.7