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:
Guochun Huang
2024-04-07 17:56:23 +08:00
committed by 黄国椿
parent 458cc490ab
commit 74ecc03c86

View File

@@ -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)) {