diff options
author | Arvind Yadav | 2017-08-21 18:43:51 +0200 |
---|---|---|
committer | Jonathan Cameron | 2017-09-03 19:10:28 +0200 |
commit | 1405ddfbf10a4e3475babf533fca5f5f60dba2c8 (patch) | |
tree | 97e97cd26d61882642a95131c8cde89c70743936 /drivers/staging/iio/light/tsl2x7x.c | |
parent | staging:iio:docs: drop setting of THIS_MODULE from staging docs. (diff) | |
download | kernel-qcow2-linux-1405ddfbf10a4e3475babf533fca5f5f60dba2c8.tar.gz kernel-qcow2-linux-1405ddfbf10a4e3475babf533fca5f5f60dba2c8.tar.xz kernel-qcow2-linux-1405ddfbf10a4e3475babf533fca5f5f60dba2c8.zip |
staging: iio: tsl2x7x: constify i2c_device_id
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.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/staging/iio/light/tsl2x7x.c')
-rw-r--r-- | drivers/staging/iio/light/tsl2x7x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/light/tsl2x7x.c b/drivers/staging/iio/light/tsl2x7x.c index 02e4a21c3e97..726cd4033703 100644 --- a/drivers/staging/iio/light/tsl2x7x.c +++ b/drivers/staging/iio/light/tsl2x7x.c @@ -1977,7 +1977,7 @@ static int tsl2x7x_remove(struct i2c_client *client) return 0; } -static struct i2c_device_id tsl2x7x_idtable[] = { +static const struct i2c_device_id tsl2x7x_idtable[] = { { "tsl2571", tsl2571 }, { "tsl2671", tsl2671 }, { "tmd2671", tmd2671 }, |