summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Brace <kevinbrace@gmx.com>2019-04-17 16:08:43 -0700
committerKevin Brace <kevinbrace@gmx.com>2019-04-17 16:08:43 -0700
commitebd5feef7c743ecbf0d0eb5d295f2b27ceabb334 (patch)
tree1305c135f765332a43c848c931a9df801fd16797
parent22c611d52fc33058c03ad44c43ce3bd687849315 (diff)
Activate I2C bus for Laguna based devices
There is really no good reason for I2C bus based automatic display detection to not be turned on by default. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
-rw-r--r--src/lg_driver.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lg_driver.c b/src/lg_driver.c
index 1042030..95886b0 100644
--- a/src/lg_driver.c
+++ b/src/lg_driver.c
@@ -349,7 +349,6 @@ LgDoDDC(ScrnInfoPtr pScrn)
if (!CirMapMem(pCir, pScrn->scrnIndex))
return FALSE;
-#if LGuseI2C
if (!LgI2CInit(pScrn)) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"I2C initialization failed\n");
@@ -371,13 +370,10 @@ LgDoDDC(ScrnInfoPtr pScrn)
xf86PrintEDID(MonInfo);
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"end of I2C Monitor info\n\n");
-#endif /* LGuseI2C */
xf86SetDDCproperties(pScrn, MonInfo);
-#if LGuseI2C
- unmap_out:
-#endif /* LGuseI2C */
+unmap_out:
CirUnmapMem(pCir, pScrn->scrnIndex);
return MonInfo;