xfree86: i2c: constify I2CBusRec::name

The bus name is always assigned to string literals, thus pointing to
constant data.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-22 12:42:55 +02:00
committed by Enrico Weigelt
parent e0440a0b42
commit 171862626e

View File

@@ -17,7 +17,7 @@ typedef struct _I2CDevRec *I2CDevPtr;
/* I2C masters have to register themselves */
typedef struct _I2CBusRec {
char *BusName;
const char *BusName;
int scrnIndex;
ScrnInfoPtr pScrn;