Signed-off-by: Kevin Brace <kevinbr...@gmx.com>
---
 src/lg_i2c.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/lg_i2c.c b/src/lg_i2c.c
index f4894bd..44387ff 100644
--- a/src/lg_i2c.c
+++ b/src/lg_i2c.c
@@ -16,6 +16,11 @@
 #define _LG_PRIVATE_
 #include "lg.h"

+
+static char strI2CBus1[]    = "I2C bus 1";
+static char strI2CBus2[]    = "I2C bus 2";
+
+
 static void
 LgI2CPutBits(I2CBusPtr b, int clock, int data)
 {
@@ -75,7 +80,7 @@ LgI2CInit(ScrnInfoPtr pScrn)

     pCir->I2CPtr1 = I2CPtr;

-    I2CPtr->BusName             = "I2C bus 1";
+    I2CPtr->BusName             = strI2CBus1;
     I2CPtr->scrnIndex           = pScrn->scrnIndex;
     I2CPtr->I2CPutBits          = LgI2CPutBits;
     I2CPtr->I2CGetBits          = LgI2CGetBits;
@@ -90,7 +95,7 @@ LgI2CInit(ScrnInfoPtr pScrn)

     pCir->I2CPtr2 = I2CPtr;

-    I2CPtr->BusName             = "I2C bus 2";
+    I2CPtr->BusName             = strI2CBus2;
     I2CPtr->scrnIndex           = pScrn->scrnIndex;
     I2CPtr->I2CPutBits          = LgI2CPutBits;
     I2CPtr->I2CGetBits          = LgI2CGetBits;
--
2.17.1

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to