From 171862626efd94003ae984e89cb7e953dd036997 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 22 Jul 2025 12:42:55 +0200 Subject: [PATCH] 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 --- hw/xfree86/i2c/xf86i2c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/i2c/xf86i2c.h b/hw/xfree86/i2c/xf86i2c.h index edc5f02cf..e4f10f937 100644 --- a/hw/xfree86/i2c/xf86i2c.h +++ b/hw/xfree86/i2c/xf86i2c.h @@ -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;