drm/stm: ltdc: fix duplicated arguments
authorPhilippe CORNU <philippe.cornu@st.com>
Mon, 22 May 2017 09:30:21 +0000 (11:30 +0200)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Tue, 23 May 2017 13:19:46 +0000 (15:19 +0200)
Fix COMPILE_TEST build issue detected with the
rule: "duplicated argument to & or |"

Signed-off-by: Philippe CORNU <philippe.cornu@st.com>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1495445421-20846-1-git-send-email-philippe.cornu@st.com
drivers/gpu/drm/stm/ltdc.c

index a40418cda74a5973fa50c799101e97bf63b41b4f..700cc0800e512dc3b8d3bcdf7500156b602b1b22 100644 (file)
@@ -463,7 +463,7 @@ static void ltdc_crtc_mode_set_nofb(struct drm_crtc *crtc)
        clk_enable(ldev->pixel_clk);
 
        /* Configures the HS, VS, DE and PC polarities. */
-       val = HSPOL_AL | HSPOL_AL | DEPOL_AL | PCPOL_IPC;
+       val = HSPOL_AL | VSPOL_AL | DEPOL_AL | PCPOL_IPC;
 
        if (vm.flags & DISPLAY_FLAGS_HSYNC_HIGH)
                val |= HSPOL_AH;