From: Arvind Yadav Date: Sat, 19 Aug 2017 19:29:37 +0000 (+0530) Subject: mfd: da9055: Constify i2c_device_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6af42e5dd008535b9c1a7d2538ab19617538c3eb;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mfd: da9055: Constify i2c_device_id i2c_device_id are not supposed to change at runtime. All functions working with i2c_device_id provided by work with const i2c_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/da9055-i2c.c b/drivers/mfd/da9055-i2c.c index b53e100f577c..8169a5c2fa20 100644 --- a/drivers/mfd/da9055-i2c.c +++ b/drivers/mfd/da9055-i2c.c @@ -62,7 +62,7 @@ static int da9055_i2c_remove(struct i2c_client *i2c) * purposes separate). As a result there are specific DA9055 ids for PMIC * and CODEC, which must be different to operate together. */ -static struct i2c_device_id da9055_i2c_id[] = { +static const struct i2c_device_id da9055_i2c_id[] = { {"da9055-pmic", 0}, { } };