Messages in this thread | | | From | Arvind Yadav <> | Subject | [PATCH 0/4] constify i2c_device_id | Date | Mon, 21 Aug 2017 22:13:24 +0530 |
| |
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 (4): [PATCH 1/4] misc: apds9802als: constify i2c_device_id [PATCH 2/4] misc: hmc6352: constify i2c_device_id [PATCH 3/4] misc: isl29020: constify i2c_device_id [PATCH 4/4] staging: iio: tsl2x7x: constify i2c_device_id
drivers/misc/apds9802als.c | 2 +- drivers/misc/hmc6352.c | 2 +- drivers/misc/isl29020.c | 2 +- drivers/staging/iio/light/tsl2x7x.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
-- 2.7.4
| |