Skip to contentSkip to conversation

platform-drivers-x86: set backlight type to BACKLIGHT_PLATFORM

PATCH New Axel Lin 1 participant 1 message Jun 29, 2011

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 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.

Cc Corentin Chary <[email protected]>
Cc Yin Kangkai <[email protected]>
---
 drivers/platform/x86/asus-wmi.c       |    1 +
 drivers/platform/x86/intel_oaktrail.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
drivers/platform/x86/asus-wmi.c +1 -0
index 00460cb..3c7857c7 100644
@@ -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,
drivers/platform/x86/intel_oaktrail.c +1 -0
index e936364..7f88c79 100644
@@ -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,
Signature · 1 line
1.7.4.1