From f2819c58d22f561ce3d3cdbe2823f9ab8bcf744d Mon Sep 17 00:00:00 2001 From: Yuan Zhao Date: Fri, 15 May 2020 14:31:02 +0800 Subject: [PATCH] disp: msm: dsi: fix the error log print level Since some property of panel dtsi were not a must. Do not report errors for panel bindings that are not mandatory. Signed-off-by: Yuan Zhao Change-Id: Ie899081e2ca93740ceb854457b61e5fc5d2083fa --- msm/dsi/dsi_panel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/msm/dsi/dsi_panel.c b/msm/dsi/dsi_panel.c index add10e9172..13a8bf6168 100644 --- a/msm/dsi/dsi_panel.c +++ b/msm/dsi/dsi_panel.c @@ -794,7 +794,7 @@ static int dsi_panel_parse_timing(struct dsi_mode_info *mode, rc = utils->read_u32(utils->data, "qcom,mdss-dsi-h-sync-skew", &mode->h_skew); if (rc) - DSI_ERR("qcom,mdss-dsi-h-sync-skew is not defined, rc=%d\n", + DSI_DEBUG("qcom,mdss-dsi-h-sync-skew is not defined, rc=%d\n", rc); DSI_DEBUG("panel horz active:%d front_portch:%d back_porch:%d sync_skew:%d\n", @@ -2185,6 +2185,7 @@ static int dsi_panel_parse_bl_config(struct dsi_panel *panel) DSI_DEBUG("[%s] brigheness-max-level unspecified, defaulting to 255\n", panel->name); panel->bl_config.brightness_max_level = 255; + rc = 0; } else { panel->bl_config.brightness_max_level = val; }