Bläddra i källkod

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>
Arvind Yadav 8 år sedan
förälder
incheckning
2601a0032f
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      drivers/i2c/busses/i2c-nomadik.c

+ 1 - 1
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,