Skip to contentSkip to conversation

staging: sm750fb: coordinate conditional compilation

PATCH New Lynn Lei 1 participant 1 message Jul 2, 2017

Subsystems (3)
lore
Share & tools
lore

Lynn Lei

author
#0 lore raw

PATCH 1/1 staging: sm750fb: coordinate conditional compilation

coordinate conditional compilation with g_dcftSupportedDviController[]

fix exceed-80-characters issue

---
 drivers/staging/sm750fb/ddk750_dvi.c | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
drivers/staging/sm750fb/ddk750_dvi.c +10 -5
index 171ae063f06f..c4f329c2f1ed 100644
@@ -42,14 +42,19 @@ int dviInit(
 	unsigned char pllFilterValue
 			)
 {
+#ifdef DVI_CTRL_SII164
 	dvi_ctrl_device_t *pCurrentDviCtrl;
 
 	pCurrentDviCtrl = g_dcftSupportedDviController;
-	if (pCurrentDviCtrl->pfnInit) {
-		return pCurrentDviCtrl->pfnInit(edgeSelect, busSelect, dualEdgeClkSelect, hsyncEnable,
-						vsyncEnable, deskewEnable, deskewSetting, continuousSyncEnable,
-						pllFilterEnable, pllFilterValue);
-	}
+
+	return pCurrentDviCtrl->pfnInit(
+		edgeSelect, busSelect, dualEdgeClkSelect,
+		hsyncEnable, vsyncEnable, deskewEnable,
+		deskewSetting, continuousSyncEnable,
+		pllFilterEnable, pllFilterValue
+	);
+#endif
+
 	return -1; /* error */
 }
 
Signature · 1 line
2.13.2