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

Submitted by Kevin Brace on April 17, 2019, 11:45 p.m.

Details

Message ID 20190417234521.13388-4-kevinbrace@gmx.com
State New
Headers show
Series "Laguna I2C bus fix and activation" ( rev: 1 ) in X.org

Not browsing as part of any series.

Commit Message

Kevin Brace April 17, 2019, 11:45 p.m.
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>
---
 src/lg_driver.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

--
2.17.1

Patch hide | download patch | download mbox

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;