From: Arvind Yadav Date: Wed, 23 Aug 2017 17:20:50 +0000 (+0530) Subject: i2c: nomadik: constify amba_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2601a0032f0ef5a0592a8ee4e4e12bb00ec19aeb;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git i2c: nomadik: constify amba_id amba_id are not supposed to change at runtime. All functions working with const amba_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-nomadik.c b/drivers/i2c/busses/i2c-nomadik.c index da6609d62848..49c7c0c91486 100644 --- a/drivers/i2c/busses/i2c-nomadik.c +++ b/drivers/i2c/busses/i2c-nomadik.c @@ -1088,7 +1088,7 @@ static struct i2c_vendor_data vendor_db8500 = { .fifodepth = 32, /* Guessed from TFTR/RFTR = 15 */ }; -static struct amba_id nmk_i2c_ids[] = { +static const struct amba_id nmk_i2c_ids[] = { { .id = 0x00180024, .mask = 0x00ffffff,