summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Brace <kevinbrace@gmx.com>2019-07-17 19:55:16 -0700
committerKevin Brace <kevinbrace@gmx.com>2019-07-20 17:22:09 -0700
commitc474c463fbcbe1b20a69547ddd0fd621b8950f4b (patch)
treeffbb3edfb9f76ffb884d024b2299d95a9be9b024
parentd5f71611d9a5375d63a8f027b52335d3de8b6e89 (diff)
Declare an I2C bus name string as a static type for alp_i2c.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
-rw-r--r--src/alp_i2c.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/alp_i2c.c b/src/alp_i2c.c
index 9341543..b52f2c8 100644
--- a/src/alp_i2c.c
+++ b/src/alp_i2c.c
@@ -16,6 +16,11 @@
#define _ALP_PRIVATE_
#include "alp.h"
+
+static char strI2CBus1[] = "I2C bus 1";
+static char strI2CBus2[] = "I2C bus 2";
+
+
/*
* Switch between internal I2C bus and external (DDC) bus.
* There is one I2C port controlled bu SR08 and the programmable
@@ -99,7 +104,7 @@ AlpI2CInit(ScrnInfoPtr pScrn)
pCir->I2CPtr1 = I2CPtr;
- I2CPtr->BusName = "I2C bus 1";
+ I2CPtr->BusName = strI2CBus1;
I2CPtr->scrnIndex = pScrn->scrnIndex;
I2CPtr->I2CPutBits = AlpI2CPutBits;
I2CPtr->I2CGetBits = AlpI2CGetBits;
@@ -113,7 +118,7 @@ AlpI2CInit(ScrnInfoPtr pScrn)
pCir->I2CPtr2 = I2CPtr;
- I2CPtr->BusName = "I2C bus 2";
+ I2CPtr->BusName = strI2CBus2;
I2CPtr->scrnIndex = pScrn->scrnIndex;
I2CPtr->I2CPutBits = AlpI2CPutBits;
I2CPtr->I2CGetBits = AlpI2CGetBits;