Skip to content

Commit 8b4d688

Browse files
6by9popcornmix
authored andcommitted
drm/bridge: panel: Ensure backlight is reachable
Ensure that the various options of modules vs builtin results in being able to call into the backlight code. #6198 Fixes: 573f8fd ("drm/bridge: panel: Name an associated backlight device") Signed-off-by: Dave Stevenson <[email protected]>
1 parent b6f17e7 commit 8b4d688

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/bridge/panel.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ static int panel_bridge_attach(struct drm_bridge *bridge,
8787
drm_connector_attach_encoder(&panel_bridge->connector,
8888
bridge->encoder);
8989

90+
#if IS_REACHABLE(CONFIG_BACKLIGHT_CLASS_DEVICE)
9091
backlight_set_display_name(panel_bridge->panel->backlight,
9192
panel_bridge->connector.name);
93+
#endif
9294

9395
if (bridge->dev->registered) {
9496
if (connector->funcs->reset)

0 commit comments

Comments
 (0)