summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/asus-wireless.c
diff options
context:
space:
mode:
authorJoão Paulo Rechi Vita <jprvita@gmail.com>2018-06-29 17:11:38 -0700
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-07-02 16:48:22 +0300
commit6bb6ec285df9a20128f8b0ed7cdaad7152208eb8 (patch)
tree532121117f0faa1e3648bebf6e666d9ed1485da4 /drivers/platform/x86/asus-wireless.c
parent10a2032d7a6ac1d9e435ecb355fcc297e550d148 (diff)
platform/x86: asus-wireless: Toggle airplane mode LED
This commit makes use of a newly implemented RFKill LED trigger to trigger the LED when all radios are blocked. Signed-off-by: João Paulo Rechi Vita <jprvita@endlessm.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/asus-wireless.c')
-rw-r--r--drivers/platform/x86/asus-wireless.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/asus-wireless.c b/drivers/platform/x86/asus-wireless.c
index 6afd011de9e5..0e9f5ec13474 100644
--- a/drivers/platform/x86/asus-wireless.c
+++ b/drivers/platform/x86/asus-wireless.c
@@ -167,6 +167,7 @@ static int asus_wireless_add(struct acpi_device *adev)
data->led.brightness_get = led_state_get;
data->led.flags = LED_CORE_SUSPENDRESUME;
data->led.max_brightness = 1;
+ data->led.default_trigger = "rfkill-none";
err = devm_led_classdev_register(&adev->dev, &data->led);
if (err)
destroy_workqueue(data->wq);