From: João Paulo Rechi Vita Date: Sat, 30 Jun 2018 00:11:38 +0000 (-0700) Subject: platform/x86: asus-wireless: Toggle airplane mode LED X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=6bb6ec285df9a20128f8b0ed7cdaad7152208eb8;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Andy Shevchenko --- 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);