Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Axel Lin and committed by
Matthew Garrett
60cfa098 a50245af

+2
+1
drivers/platform/x86/asus-wmi.c
··· 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,
+1
drivers/platform/x86/intel_oaktrail.c
··· 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,