From patchwork Sun Apr 12 11:26:28 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mattia Dongili X-Patchwork-Id: 17815 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3CBQZqT007056 for ; Sun, 12 Apr 2009 11:26:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756517AbZDLL0e (ORCPT ); Sun, 12 Apr 2009 07:26:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759343AbZDLL0e (ORCPT ); Sun, 12 Apr 2009 07:26:34 -0400 Received: from static-220-247-10-204.b-man.svips.gol.ne.jp ([220.247.10.204]:41429 "EHLO smtp.kamineko.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756517AbZDLL0d (ORCPT ); Sun, 12 Apr 2009 07:26:33 -0400 Received: by smtp.kamineko.org (Postfix, from userid 8) id 4EC67108BC; Sun, 12 Apr 2009 20:26:32 +0900 (JST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on enma.kamineko.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED, AWL autolearn=ham version=3.2.5 Received: from caligola.kamineko.org (unknown [192.168.1.34]) by smtp.kamineko.org (Postfix) with ESMTP id C25073900F; Sun, 12 Apr 2009 20:26:31 +0900 (JST) Received: by caligola.kamineko.org (Postfix, from userid 1000) id 8883216036; Sun, 12 Apr 2009 20:26:31 +0900 (JST) From: Mattia Dongili To: Len Brown Cc: linux-acpi@vger.kernel.org, "Almer S. Tigelaar" , Mattia Dongili Subject: [PATCH 3/6] sony-laptop: SNC input event 38 fix Date: Sun, 12 Apr 2009 20:26:28 +0900 Message-Id: <1239535591-15514-4-git-send-email-malattia@linux.it> X-Mailer: git-send-email 1.6.2.2 In-Reply-To: <1239535591-15514-3-git-send-email-malattia@linux.it> References: <1239535591-15514-1-git-send-email-malattia@linux.it> <1239535591-15514-2-git-send-email-malattia@linux.it> <1239535591-15514-3-git-send-email-malattia@linux.it> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Almer S. Tigelaar Fixes the "unknown input event 38" messages. ANYBUTTON_RELEASED is now treated the same way as FN_KEY_RELEASED. Signed-off-by: Almer S. Tigelaar Signed-off-by: Mattia Dongili --- drivers/platform/x86/sony-laptop.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index 7b1da3f..ddbd86b 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c @@ -317,7 +317,8 @@ static void sony_laptop_report_input_event(u8 event) struct input_dev *key_dev = sony_laptop_input.key_dev; struct sony_laptop_keypress kp = { NULL }; - if (event == SONYPI_EVENT_FNKEY_RELEASED) { + if (event == SONYPI_EVENT_FNKEY_RELEASED || + event == SONYPI_EVENT_ANYBUTTON_RELEASED) { /* Nothing, not all VAIOs generate this event */ return; }