Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfc41b5a authored by Xiaowen Wu's avatar Xiaowen Wu
Browse files

drm/msm/sde: change backlight setup to support shared dsi display



Skip backlight setup based on set_backlight op instead of
connector type. This check is more generic and can support connector
that is DSI type but doesn't support backlight control.

Change-Id: Ibc7891a9376e701c55d6d99b08487ef3cd90a283
Signed-off-by: default avatarXiaowen Wu <wxiaowen@codeaurora.org>
parent 6986944f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ static int sde_backlight_setup(struct sde_connector *c_conn,
	if (!c_conn || !dev || !dev->dev) {
		SDE_ERROR("invalid param\n");
		return -EINVAL;
	} else if (c_conn->connector_type != DRM_MODE_CONNECTOR_DSI) {
	} else if (!c_conn->ops.set_backlight) {
		return 0;
	}