[xf86-video-cirrus,1/3] Fix for Laguna I2C bus code compilation error

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

Details

Message ID 20190417234521.13388-2-kevinbrace@gmx.com
State Accepted
Commit 6e59935a7b93135e23e2b81f4c6e5c1ec9da369d
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.
When commit 9a5e19597be4f5ee4c1030e4a716207789e78668 (cirrus: convert
to compat server API.) updated the code, it did not update Laguna I2C
bus code to handle newer X Servers.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
---
 src/lg_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.17.1

Patch hide | download patch | download mbox

diff --git a/src/lg_driver.c b/src/lg_driver.c
index daaf4f9..be8963a 100644
--- a/src/lg_driver.c
+++ b/src/lg_driver.c
@@ -359,7 +359,7 @@  LgDoDDC(ScrnInfoPtr pScrn)
     /*
      * Read and output monitor info using DDC2 over I2C bus.
      */
-    MonInfo = xf86DoEDID_DDC2(pScrn->scrnIndex, pCir->I2CPtr1);
+    MonInfo = xf86DoEDID_DDC2(XF86_SCRN_ARG(pScrn), pCir->I2CPtr1);
     xf86DrvMsg(pScrn->scrnIndex, X_INFO,
                 "I2C Monitor info: %p\n", (void *)MonInfo);
     xf86PrintEDID(MonInfo);