i2c_device_id are not supposed to change at runtime. All functions working with i2c_device_id provided by <linux/i2c.h> work with const i2c_device_id. So mark the non-const structs as const. Arvind Yadav (3): [PATCH 1/3] iio: accel: bma180: constify i2c_device_id [PATCH 2/3] iio: light: apds9300: constify i2c_device_id [PATCH 3/3] iio: light: tsl2583: constify i2c_device_id drivers/iio/accel/bma180.c | 2 +- drivers/iio/light/apds9300.c | 2 +- drivers/iio/light/tsl2583.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html