summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/asus-wmi.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-06-29 11:43:30 +0800
committerMatthew Garrett <mjg@redhat.com>2011-07-07 11:27:17 -0400
commit60cfa098dc60a9988e18d0bbab735e10c744e6fe (patch)
tree4ae8cdfae16d008adba2579f96f4ffc8e051647e /drivers/platform/x86/asus-wmi.c
parenta50245af782ea85b1d5ad23e1015e0ac52996b27 (diff)
downloadlwn-60cfa098dc60a9988e18d0bbab735e10c744e6fe.tar.gz
lwn-60cfa098dc60a9988e18d0bbab735e10c744e6fe.zip
platform-drivers-x86: set backlight type to BACKLIGHT_PLATFORM
Some newly added drivers do not set backlight type, as a result /sys/class/backlight/<backlight>/type shows incorrect backlight type. Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: Corentin Chary <corentin.chary@gmail.com> Cc: Yin Kangkai <kangkai.yin@intel.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86/asus-wmi.c')
-rw-r--r--drivers/platform/x86/asus-wmi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index 00460cb9587b..3c7857c71a23 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -1025,6 +1025,7 @@ static int asus_wmi_backlight_init(struct asus_wmi *asus)
return power;
memset(&props, 0, sizeof(struct backlight_properties));
+ props.type = BACKLIGHT_PLATFORM;
props.max_brightness = max;
bd = backlight_device_register(asus->driver->name,
&asus->platform_device->dev, asus,