[PATCH xf86-video-cirrus 3/3] Activate I2C bus for Laguna based devices

Kevin Brace kevinbrace at gmx.com
Wed Apr 17 23:45:21 UTC 2019


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 at gmx.com>
---
 src/lg_driver.c | 6 +-----
 1 file changed, 1 insertion(+), 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;
--
2.17.1



More information about the xorg-devel mailing list