From: Dmitry Torokhov Date: Sat, 24 Aug 2024 05:50:37 +0000 (-0700) Subject: Input: zforce_ts - make zforce_idtable constant X-Git-Tag: v6.12-rc1~65^2~2^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5ed81cc7bccef90e39ee36b0c1f3677686a0fbb;p=thirdparty%2Fkernel%2Flinux.git Input: zforce_ts - make zforce_idtable constant The I2C ID table is not supposed to change; mark it as const. Tested-by: Andreas Kemnade # Tolino Shine2HD Link: https://lore.kernel.org/r/20240824055047.1706392-14-dmitry.torokhov@gmail.com Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/zforce_ts.c b/drivers/input/touchscreen/zforce_ts.c index 78f561510f8d2..2ae079db88847 100644 --- a/drivers/input/touchscreen/zforce_ts.c +++ b/drivers/input/touchscreen/zforce_ts.c @@ -855,7 +855,7 @@ static int zforce_probe(struct i2c_client *client) return 0; } -static struct i2c_device_id zforce_idtable[] = { +static const struct i2c_device_id zforce_idtable[] = { { "zforce-ts" }, { } };