mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
pwm-backlight: set default devname as rk28_bl, to make Android happy
This commit is contained in:
parent
0f04961394
commit
0dce12aaaa
|
|
@ -301,6 +301,9 @@ static int pwm_backlight_probe(struct platform_device *pdev)
|
|||
memset(&props, 0, sizeof(struct backlight_properties));
|
||||
props.type = BACKLIGHT_RAW;
|
||||
props.max_brightness = data->max_brightness;
|
||||
#ifdef CONFIG_ARCH_ROCKCHIP
|
||||
dev_set_name(&pdev->dev, "rk28_bl");
|
||||
#endif
|
||||
bl = backlight_device_register(dev_name(&pdev->dev), &pdev->dev, pb,
|
||||
&pwm_backlight_ops, &props);
|
||||
if (IS_ERR(bl)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user