Commit 60cfa098dc60a9988e18d0bbab735e10c744e6fe
Committed by
Matthew Garrett
1 parent
a50245af78
Exists in
master
and in
7 other branches
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>
Showing 2 changed files with 2 additions and 0 deletions Side-by-side Diff
drivers/platform/x86/asus-wmi.c
... | ... | @@ -1025,6 +1025,7 @@ |
1025 | 1025 | return power; |
1026 | 1026 | |
1027 | 1027 | memset(&props, 0, sizeof(struct backlight_properties)); |
1028 | + props.type = BACKLIGHT_PLATFORM; | |
1028 | 1029 | props.max_brightness = max; |
1029 | 1030 | bd = backlight_device_register(asus->driver->name, |
1030 | 1031 | &asus->platform_device->dev, asus, |
drivers/platform/x86/intel_oaktrail.c
... | ... | @@ -250,6 +250,7 @@ |
250 | 250 | struct backlight_properties props; |
251 | 251 | |
252 | 252 | memset(&props, 0, sizeof(struct backlight_properties)); |
253 | + props.type = BACKLIGHT_PLATFORM; | |
253 | 254 | props.max_brightness = OT_EC_BL_BRIGHTNESS_MAX; |
254 | 255 | bd = backlight_device_register(DRIVER_NAME, |
255 | 256 | &oaktrail_device->dev, NULL, |