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

Commit 975a2d5b authored by Ajay Singh Parmar's avatar Ajay Singh Parmar Committed by Matt Wagantall
Browse files

msm: mdss: wb: enable wb when hdmi is primary



enable WB as secondary display when HDMI is configured as
primary panel.

Change-Id: Iffb635bdf4574d66e42c4320b122fde52ad1bf16
Signed-off-by: default avatarAjay Singh Parmar <aparmar@codeaurora.org>
parent a8c19ff3
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -122,26 +122,11 @@ static int mdss_wb_probe(struct platform_device *pdev)
{
	struct mdss_panel_data *pdata = NULL;
	struct mdss_wb_ctrl *wb_ctrl = NULL;
	struct mdss_panel_cfg *pan_cfg = NULL;
	int rc = 0;

	if (!pdev->dev.of_node)
		return -ENODEV;

	/*
	 * In case HDMI is configured as primary, do not configure
	 * WB. Currently there is no requirement for any other panel
	 * in case HDMI is primary. Will revisit if WB is needed with
	 * HDMI as primary.
	 */
	pan_cfg = mdss_panel_intf_type(MDSS_PANEL_INTF_HDMI);
	if (IS_ERR(pan_cfg)) {
		return PTR_ERR(pan_cfg);
	} else if (pan_cfg) {
		pr_debug("%s: HDMI is primary\n", __func__);
		return -ENODEV;
	}

	wb_ctrl = devm_kzalloc(&pdev->dev, sizeof(*wb_ctrl), GFP_KERNEL);
	if (!wb_ctrl)
		return -ENOMEM;