projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f04961
)
pwm-backlight: set default devname as rk28_bl, to make Android happy
author
黄涛
<huangtao@rock-chips.com>
Tue, 25 Feb 2014 10:50:08 +0000
(18:50 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Tue, 25 Feb 2014 10:52:31 +0000
(18:52 +0800)
drivers/video/backlight/pwm_bl.c
patch
|
blob
|
history
diff --git
a/drivers/video/backlight/pwm_bl.c
b/drivers/video/backlight/pwm_bl.c
index 40b130fe1c6e0db0768df95c26d2e6e6bdf0cb17..209d5a085f9da3759e5d7aec8557389c432e6d99 100644
(file)
--- a/
drivers/video/backlight/pwm_bl.c
+++ b/
drivers/video/backlight/pwm_bl.c
@@
-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)) {