diff options
author | zino lin <linzino7@gmail.com> | 2016-08-28 10:12:06 +0200 |
---|---|---|
committer | Darren Hart <dvhart@linux.intel.com> | 2016-09-24 01:20:34 +0200 |
commit | 999d4376c62828b260fbb59d5ab6bc28918ca448 (patch) | |
tree | bc11cad7c2908dd6cfc6cd66d8829b745a67da28 /drivers/platform/x86/asus-wmi.c | |
parent | platform/x86: toshiba_acpi: Fix typo in *_cooling_method_set function (diff) | |
download | linux-999d4376c62828b260fbb59d5ab6bc28918ca448.tar.xz linux-999d4376c62828b260fbb59d5ab6bc28918ca448.zip |
platform/x86: asus-wmi: fix asus ux303ub brightness issue
acpi_video0 doesn't work, asus-wmi brightness interface doesn't work, too.
So, we use native brightness interface to handle the brightness adjustion,
and add quirk_asus_ux303ub.
Signed-off-by: zino lin <linzino7@gmail.com>
Acked-by: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/asus-wmi.c')
-rw-r--r-- | drivers/platform/x86/asus-wmi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c index 7c093a0b78bb..ce6ca31a2d09 100644 --- a/drivers/platform/x86/asus-wmi.c +++ b/drivers/platform/x86/asus-wmi.c @@ -2084,6 +2084,9 @@ static int asus_wmi_add(struct platform_device *pdev) if (asus->driver->quirks->wmi_backlight_power) acpi_video_set_dmi_backlight_type(acpi_backlight_vendor); + if (asus->driver->quirks->wmi_backlight_native) + acpi_video_set_dmi_backlight_type(acpi_backlight_native); + if (acpi_video_get_backlight_type() == acpi_backlight_vendor) { err = asus_wmi_backlight_init(asus); if (err && err != -ENODEV) |