Skip to contentSkip to conversation

drm/stm: ltdc: fix duplicated arguments

PATCH In review Philippe CORNU 2 participants 2 messages May 22, 2017 – May 23, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/stm: ltdc: fix duplicated arguments

Fix COMPILE_TEST build issue detected with the
rule: "duplicated argument to & or |"

---
 drivers/gpu/drm/stm/ltdc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/stm/ltdc.c +1 -1
index a40418c..700cc08 100644
@@ -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;
Signature · 1 line
1.9.1
#1 lore raw

2017-05-22 11:30 GMT+02:00 Philippe CORNU <[email protected]>:

Quoted 3 lines

Fix COMPILE_TEST build issue detected with the
rule: "duplicated argument to & or |"

I have merged it in drm-misc-next

Thanks,
Benjamin

Quoted 21 lines
---
 drivers/gpu/drm/stm/ltdc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/stm/ltdc.c +1 -2
index a40418c..700cc08 100644
@@ -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;
--

1.9.1