From patchwork Sun Jan 18 18:01:51 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Chary X-Patchwork-Id: 3039 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 n0IICtkt022633 for ; Sun, 18 Jan 2009 10:12:55 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757442AbZARSRP (ORCPT ); Sun, 18 Jan 2009 13:17:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934086AbZARSRP (ORCPT ); Sun, 18 Jan 2009 13:17:15 -0500 Received: from iksaif.net ([88.191.73.63]:58971 "EHLO iksaif.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757934AbZARSRN (ORCPT ); Sun, 18 Jan 2009 13:17:13 -0500 Received: from localhost.localdomain (cxr69-11-88-180-139-205.fbx.proxad.net [88.180.139.205]) (Authenticated sender: corentincj@iksaif.net) by iksaif.net (Postfix) with ESMTPA id C9D7D1858001; Sun, 18 Jan 2009 19:11:24 +0100 (CET) From: Corentin Chary To: linux-acpi@vger.kernel.org Cc: lenb@kernel.org, Corentin Chary Subject: [PATCH] asus_acpi: Add R1F support Date: Sun, 18 Jan 2009 19:01:51 +0100 Message-Id: <1232301715-20292-3-git-send-email-corentincj@iksaif.net> X-Mailer: git-send-email 1.6.0.6 In-Reply-To: <1232301715-20292-2-git-send-email-corentincj@iksaif.net> References: <1232301715-20292-1-git-send-email-corentincj@iksaif.net> <1232301715-20292-2-git-send-email-corentincj@iksaif.net> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Add R1F support Signed-off-by: Corentin Chary --- drivers/platform/x86/asus_acpi.c | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/drivers/platform/x86/asus_acpi.c b/drivers/platform/x86/asus_acpi.c index 1e74988..d63f26e 100644 --- a/drivers/platform/x86/asus_acpi.c +++ b/drivers/platform/x86/asus_acpi.c @@ -143,6 +143,7 @@ struct asus_hotk { S1300N, S5200N*/ A4S, /* Z81sp */ F3Sa, /* (Centrino) */ + R1F, END_MODEL } model; /* Models currently supported */ u16 event_count[128]; /* Count for each event TODO make this better */ @@ -420,7 +421,18 @@ static struct model_data model_conf[END_MODEL] = { .display_get = "\\ADVG", .display_set = "SDSP", }, - + { + .name = "R1F", + .mt_bt_switch = "BLED", + .mt_mled = "MLED", + .mt_wled = "WLED", + .mt_lcd_switch = "\\Q10", + .lcd_status = "\\GP06", + .brightness_set = "SPLV", + .brightness_get = "GPLV", + .display_set = "SDSP", + .display_get = "\\INFB" + } }; /* procdir we use */ @@ -1165,6 +1177,8 @@ static int asus_model_match(char *model) return W3V; else if (strncmp(model, "W5A", 3) == 0) return W5A; + else if (strncmp(model, "R1F", 3) == 0) + return R1F; else if (strncmp(model, "A4S", 3) == 0) return A4S; else if (strncmp(model, "F3Sa", 4) == 0)