From: Arvind Yadav Date: Thu, 17 Aug 2017 12:05:52 +0000 (+0530) Subject: i2c: taos-evm: constify serio_device_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c6a6bdbdc6cc07257889849d9ddf7256cbf3acbc;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git i2c: taos-evm: constify serio_device_id serio_device_id are not supposed to change at runtime. All functions working with serio_device_id provided by work with const serio_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-taos-evm.c b/drivers/i2c/busses/i2c-taos-evm.c index 210ca82f8aa0..addd90a8cb59 100644 --- a/drivers/i2c/busses/i2c-taos-evm.c +++ b/drivers/i2c/busses/i2c-taos-evm.c @@ -291,7 +291,7 @@ static void taos_disconnect(struct serio *serio) dev_info(&serio->dev, "Disconnected from TAOS EVM\n"); } -static struct serio_device_id taos_serio_ids[] = { +static const struct serio_device_id taos_serio_ids[] = { { .type = SERIO_RS232, .proto = SERIO_TAOSEVM,