mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
drm/panel: simple: differentiated DSC backlight naming
when two single DSI work simultaneously without defining the backlight, there will be a naming conflict as follows: sysfs: cannot create duplicate filename '/class/backlight/dcs-backlight' Change-Id: I25c9da720595322cd8136b715efc7822bd7e04e9 Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
This commit is contained in:
@@ -5168,7 +5168,7 @@ static int panel_simple_dsi_probe(struct mipi_dsi_device *dsi)
|
||||
props.max_brightness = 255;
|
||||
|
||||
panel->base.backlight =
|
||||
devm_backlight_device_register(dev, "dcs-backlight",
|
||||
devm_backlight_device_register(dev, dev_name(dev),
|
||||
dev, panel, &dcs_bl_ops,
|
||||
&props);
|
||||
if (IS_ERR(panel->base.backlight)) {
|
||||
|
||||
Reference in New Issue
Block a user