diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-23 19:20:50 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-08-29 22:35:14 +0200 |
commit | 2601a0032f0ef5a0592a8ee4e4e12bb00ec19aeb (patch) | |
tree | 13a6fc96a7b6c62bfb72e56bab82cc56c4dbb4f4 /drivers/i2c | |
parent | i2c: versatile: Make i2c_algo_bit_data const (diff) | |
download | linux-2601a0032f0ef5a0592a8ee4e4e12bb00ec19aeb.tar.xz linux-2601a0032f0ef5a0592a8ee4e4e12bb00ec19aeb.zip |
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 <arvind.yadav.cs@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-nomadik.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |