aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel_oaktrail.c
diff options
context:
space:
mode:
authorAxel Lin <[email protected]>2011-06-29 03:43:30 +0000
committerMatthew Garrett <[email protected]>2011-07-07 15:27:17 +0000
commit60cfa098dc60a9988e18d0bbab735e10c744e6fe (patch)
tree4ae8cdfae16d008adba2579f96f4ffc8e051647e /drivers/platform/x86/intel_oaktrail.c
parentthinkpad-acpi: handle HKEY 0x4010, 0x4011 events (diff)
downloadkernel-60cfa098dc60a9988e18d0bbab735e10c744e6fe.tar.gz
kernel-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 <[email protected]> Cc: Corentin Chary <[email protected]> Cc: Yin Kangkai <[email protected]> Signed-off-by: Matthew Garrett <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel_oaktrail.c')
-rw-r--r--drivers/platform/x86/intel_oaktrail.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/intel_oaktrail.c b/drivers/platform/x86/intel_oaktrail.c
index e936364a609d..7f88c7923fc6 100644
--- a/drivers/platform/x86/intel_oaktrail.c
+++ b/drivers/platform/x86/intel_oaktrail.c
@@ -250,6 +250,7 @@ static int oaktrail_backlight_init(void)
struct backlight_properties props;
memset(&props, 0, sizeof(struct backlight_properties));
+ props.type = BACKLIGHT_PLATFORM;
props.max_brightness = OT_EC_BL_BRIGHTNESS_MAX;
bd = backlight_device_register(DRIVER_NAME,
&oaktrail_device->dev, NULL,