All of lore.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <len.brown@intel.com>
To: linux-acpi@vger.kernel.org
Cc: Marek W <marekw1977@yahoo.com.au>, Andrew Morton <akpm@osdl.org>,
	Len Brown <len.brown@intel.com>
Subject: [PATCH 1/28] ACPI: asus_acpi: W3000 support
Date: Sat, 14 Oct 2006 04:05:42 -0400
Date: Mon, 14 Aug 2006 22:37:20 -0700	[thread overview]
Message-ID: <11608131702709-git-send-email-len.brown@intel.com> (raw)
Message-ID: <288f3ad406460f03642a41bb945826891a7b866f.1160812999.git.len.brown@intel.com> (raw)
In-Reply-To: <11608131691346-git-send-email-len.brown@intel.com>

From: Marek W <marekw1977@yahoo.com.au>

Add support for W3000 (W3V) and indirectly fixes an issue with kmilo under KDE
(it was triggering excessive LCD read error messages by querying asus_acpi
module) allowing people (I am probably the only one who tested this) with
W3000 to run kmilo.

Cc: Karol Kozimor <sziwan@hell.org.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
---
 drivers/acpi/asus_acpi.c |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/drivers/acpi/asus_acpi.c b/drivers/acpi/asus_acpi.c
index e9ee4c5..ebc033f 100644
--- a/drivers/acpi/asus_acpi.c
+++ b/drivers/acpi/asus_acpi.c
@@ -138,6 +138,7 @@ struct asus_hotk {
 		S2x,		//S200 (J1 reported), Victor MP-XP7210
 		W1N,		//W1000N
 		W5A,		//W5A
+		W3V,            //W3030V
 		xxN,		//M2400N, M3700N, M5200N, M6800N, S1300N, S5200N
 		//(Centrino)
 		END_MODEL
@@ -376,6 +377,17 @@ static struct model_data model_conf[END_
 	 .display_get = "\\ADVG"},
 
 	{
+	 .name = "W3V",
+	 .mt_mled = "MLED",
+	 .mt_wled = "WLED",
+	 .mt_lcd_switch = xxN_PREFIX "_Q10",
+	 .lcd_status = "\\BKLT",
+	 .brightness_set = "SPLV",
+	 .brightness_get = "GPLV",
+	 .display_set = "SDSP",
+	 .display_get = "\\INFB"},
+
+       {
 	 .name = "xxN",
 	 .mt_mled = "MLED",
 /* WLED present, but not controlled by ACPI */
@@ -1097,6 +1109,8 @@ static int asus_model_match(char *model)
 		return A4G;
 	else if (strncmp(model, "W1N", 3) == 0)
 		return W1N;
+	else if (strncmp(model, "W3V", 3) == 0)
+		return W3V;
 	else if (strncmp(model, "W5A", 3) == 0)
 		return W5A;
 	else
@@ -1200,9 +1214,10 @@ static int asus_hotk_get_info(void)
 		hotk->methods->mt_wled = NULL;
 	/* L5D's WLED is not controlled by ACPI */
 	else if (strncmp(string, "M2N", 3) == 0 ||
+		 strncmp(string, "W3V", 3) == 0 ||
 		 strncmp(string, "S1N", 3) == 0)
 		hotk->methods->mt_wled = "WLED";
-	/* M2N and S1N have a usable WLED */
+	/* M2N, S1N and W3V have a usable WLED */
 	else if (asus_info) {
 		if (strncmp(asus_info->oem_table_id, "L1", 2) == 0)
 			hotk->methods->mled_status = NULL;
-- 
1.4.3.rc2.g23bed-dirty

  reply	other threads:[~2006-10-14  8:02 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-14  8:05 ACPI patches pushed to linux-2.6.19-rc2 Len Brown
2006-10-14  8:05 ` Len Brown [this message]
2006-10-14  8:05   ` [PATCH 1/28] ACPI: asus_acpi: W3000 support Len Brown
2006-10-14  8:05   ` [PATCH 2/28] ACPI: ibm_acpi: Remove experimental status for brightness and volume Len Brown
2006-10-14  8:05     ` Len Brown
2006-10-14  8:05   ` [PATCH 3/28] ACPI: ibm_acpi: Update documentation " Len Brown
2006-10-14  8:05     ` Len Brown
2006-10-14  8:05   ` [PATCH 4/28] ACPI: ibm_acpi: Documentation the wan feature Len Brown
2006-10-14  8:05     ` Len Brown
2006-10-14  8:05   ` [PATCH 5/28] ACPI: sbs: check for NULL device pointer Len Brown
2006-10-14  8:05     ` Len Brown
2006-10-14  8:05   ` [PATCH 6/28] ACPI: sbs: fix module_param() initializers Len Brown
2006-10-14  8:05     ` Len Brown
2006-10-14  8:05   ` [PATCH 7/28] ACPI: Processor native C-states using MWAIT Len Brown
2006-10-14  8:05     ` Len Brown
2006-10-14  8:05   ` [PATCH 8/28] ACPI: consolidate functions in acpi ec driver Len Brown
2006-10-14  8:05     ` Len Brown
2006-10-14  8:05   ` [PATCH 14/28] ACPI: EC: export ec_transaction() for msi-laptop driver Len Brown
2006-10-14  8:05     ` Len Brown
2006-10-14  8:05   ` [PATCH 15/28] MSI S270 Laptop support: backlight, wlan, bluetooth states Len Brown
2006-10-14  8:05     ` Len Brown
2006-10-14  8:05   ` [PATCH 18/28] ACPI: ibm_acpi: delete obsolete documentation Len Brown
2006-10-14  8:05     ` Len Brown
2006-10-14  8:06   ` [PATCH 19/28] ACPI: fix potential OOPS in power driver with CONFIG_ACPI_DEBUG Len Brown
2006-10-14  8:06     ` Len Brown
2006-10-14  8:06   ` [PATCH 20/28] ACPI: acpi_pci_link_set() can allocate with either GFP_ATOMIC or GFP_KERNEL Len Brown
2006-10-14  8:06     ` Len Brown
2006-10-14  8:06   ` [PATCH 21/28] ACPI: update comments in motherboard.c Len Brown
2006-10-14  8:06     ` Len Brown
2007-01-07  4:56       ` Bjorn Helgaas
2006-10-14  8:06   ` [PATCH 22/28] ACPI: fix section for CPU init functions Len Brown
2006-10-14  8:06     ` Len Brown
2006-10-14  8:06   ` [PATCH 23/28] ACPI: fix printk format warnings Len Brown
2006-10-14  8:06     ` Len Brown
2006-10-14  8:06   ` [PATCH 24/28] ACPI: SCI interrupt source override Len Brown
2006-10-14  8:06     ` Len Brown
2006-10-14  8:06   ` [PATCH 25/28] ACPI: asus_acpi: fix proc files parsing Len Brown
2006-10-14  8:06     ` Len Brown
2006-10-14  8:06   ` [PATCH 26/28] ACPI: asus_acpi: don't printk on writing garbage to proc files Len Brown
2006-10-14  8:06     ` Len Brown
2006-10-14  8:06   ` [PATCH 27/28] ACPICA: Fix incorrect handling of PCI Express Root Bridge _HID Len Brown
2006-10-14  8:06     ` Len Brown
2006-10-14  8:06   ` [PATCH 28/28] ACPI: check battery status on resume for un/plug events during sleep Len Brown
2006-10-14  8:06     ` Len Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11608131702709-git-send-email-len.brown@intel.com \
    --to=len.brown@intel.com \
    --cc=akpm@osdl.org \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=marekw1977@yahoo.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.