All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] asus-wmi: control wlan-led if wapf > 0
@ 2013-10-02  3:41 AceLan Kao
  2013-10-02  3:41 ` [PATCH 2/2] asus-nb-wmi: Add ASUSTeK COMPUTER INC. X200CA AceLan Kao
  2013-12-17  6:27 ` [PATCH 1/2] asus-wmi: control wlan-led if wapf > 0 AceLan Kao
  0 siblings, 2 replies; 7+ messages in thread
From: AceLan Kao @ 2013-10-02  3:41 UTC (permalink / raw)
  To: platform-driver-x86, Matthew Garrett, Corentin Chary

Wifi will be controlled by asus-wmi driver when wapf > 0
So, controls the wifi-led when wapf > 0

Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
---
 drivers/platform/x86/asus-wmi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index 19c313b..cb22d3f 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -558,7 +558,7 @@ static int asus_wmi_led_init(struct asus_wmi *asus)
 			goto error;
 	}
 
-	if (wlan_led_presence(asus) && (asus->driver->quirks->wapf == 4)) {
+	if (wlan_led_presence(asus) && (asus->driver->quirks->wapf > 0)) {
 		INIT_WORK(&asus->wlan_led_work, wlan_led_update);
 
 		asus->wlan_led.name = "asus::wlan";
@@ -887,7 +887,7 @@ static int asus_new_rfkill(struct asus_wmi *asus,
 		return -EINVAL;
 
 	if ((dev_id == ASUS_WMI_DEVID_WLAN) &&
-			(asus->driver->quirks->wapf == 4))
+			(asus->driver->quirks->wapf > 0))
 		rfkill_set_led_trigger_name(*rfkill, "asus-wlan");
 
 	rfkill_init_sw_state(*rfkill, !result);
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH 1/2] asus-wmi: control wlan-led if wapf > 0
@ 2014-07-09  8:18 AceLan Kao
  2014-07-09  8:22 ` AceLan Kao
  0 siblings, 1 reply; 7+ messages in thread
From: AceLan Kao @ 2014-07-09  8:18 UTC (permalink / raw)
  To: platform-driver-x86, Matthew Garrett, Corentin Chary

Wifi will be controlled by asus-wmi driver when wapf > 0
So, controls the wifi-led when wapf > 0

Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
---
 drivers/platform/x86/asus-wmi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index 19c313b..cb22d3f 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -558,7 +558,7 @@ static int asus_wmi_led_init(struct asus_wmi *asus)
 			goto error;
 	}
 
-	if (wlan_led_presence(asus) && (asus->driver->quirks->wapf == 4)) {
+	if (wlan_led_presence(asus) && (asus->driver->quirks->wapf > 0)) {
 		INIT_WORK(&asus->wlan_led_work, wlan_led_update);
 
 		asus->wlan_led.name = "asus::wlan";
@@ -887,7 +887,7 @@ static int asus_new_rfkill(struct asus_wmi *asus,
 		return -EINVAL;
 
 	if ((dev_id == ASUS_WMI_DEVID_WLAN) &&
-			(asus->driver->quirks->wapf == 4))
+			(asus->driver->quirks->wapf > 0))
 		rfkill_set_led_trigger_name(*rfkill, "asus-wlan");
 
 	rfkill_init_sw_state(*rfkill, !result);
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-07-09  8:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-02  3:41 [PATCH 1/2] asus-wmi: control wlan-led if wapf > 0 AceLan Kao
2013-10-02  3:41 ` [PATCH 2/2] asus-nb-wmi: Add ASUSTeK COMPUTER INC. X200CA AceLan Kao
2013-12-17  6:27 ` [PATCH 1/2] asus-wmi: control wlan-led if wapf > 0 AceLan Kao
2014-01-22  8:33   ` AceLan Kao
2014-01-22 12:47     ` Matthew Garrett
  -- strict thread matches above, loose matches on Subject: below --
2014-07-09  8:18 AceLan Kao
2014-07-09  8:22 ` AceLan Kao

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.