From patchwork Wed Apr 1 13:10:45 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mattia Dongili X-Patchwork-Id: 15642 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 n31DBBa6006511 for ; Wed, 1 Apr 2009 13:11:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756492AbZDANKw (ORCPT ); Wed, 1 Apr 2009 09:10:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762477AbZDANKw (ORCPT ); Wed, 1 Apr 2009 09:10:52 -0400 Received: from static-220-247-10-204.b-man.svips.gol.ne.jp ([220.247.10.204]:56576 "EHLO smtp.kamineko.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756492AbZDANKu (ORCPT ); Wed, 1 Apr 2009 09:10:50 -0400 Received: from tadamune.kamineko.org (unknown [192.168.1.21]) by smtp.kamineko.org (Postfix) with ESMTP id 3A64114349; Wed, 1 Apr 2009 22:10:48 +0900 (JST) Received: by tadamune.kamineko.org (Postfix, from userid 1000) id 381B21310B; Wed, 1 Apr 2009 22:10:48 +0900 (JST) From: Mattia Dongili To: Len Brown Cc: linux-acpi@vger.kernel.org, Matthias Welwarsky , Mattia Dongili Subject: [PATCH 2/4] sony-laptop: new style events typo fixes Date: Wed, 1 Apr 2009 22:10:45 +0900 Message-Id: <1238591447-13338-3-git-send-email-malattia@linux.it> X-Mailer: git-send-email 1.6.2.1 In-Reply-To: <1238591447-13338-2-git-send-email-malattia@linux.it> References: <1238591447-13338-1-git-send-email-malattia@linux.it> <1238591447-13338-2-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: Matthias Welwarsky Signed-off-by: Matthias Welwarsky Signed-off-by: Mattia Dongili --- drivers/platform/x86/sony-laptop.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index 5837156..011c035 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c @@ -865,7 +865,7 @@ struct sony_nc_event { static struct sony_nc_event sony_100_events[] = { { 0x90, SONYPI_EVENT_PKEY_P1 }, { 0x10, SONYPI_EVENT_ANYBUTTON_RELEASED }, - { 0x91, SONYPI_EVENT_PKEY_P1 }, + { 0x91, SONYPI_EVENT_PKEY_P2 }, { 0x11, SONYPI_EVENT_ANYBUTTON_RELEASED }, { 0x81, SONYPI_EVENT_FNKEY_F1 }, { 0x01, SONYPI_EVENT_FNKEY_RELEASED }, @@ -929,7 +929,7 @@ static void sony_acpi_notify(acpi_handle handle, u32 event, void *data) if (sony_find_snc_handle(0x127) == ev) key_handle = 0x127; - if (handle) { + if (key_handle) { struct sony_nc_event *key_event; if (sony_call_snc_handle(key_handle, 0x200, &result))