diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-19 20:28:19 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-08-22 08:29:10 +0200 |
commit | 9d6d009a67aa2f10f45b70f67c48a908acbdf695 (patch) | |
tree | 35cd481a2f760a2d5466ab23c6a597386d708f26 /drivers/gpu/drm/i2c | |
parent | drm: i2c: ch7006: constify i2c_device_id (diff) | |
download | linux-9d6d009a67aa2f10f45b70f67c48a908acbdf695.tar.xz linux-9d6d009a67aa2f10f45b70f67c48a908acbdf695.zip |
drm: i2c: sil164: 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: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1503167300-17334-3-git-send-email-arvind.yadav.cs@gmail.com
Diffstat (limited to 'drivers/gpu/drm/i2c')
-rw-r--r-- | drivers/gpu/drm/i2c/sil164_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i2c/sil164_drv.c b/drivers/gpu/drm/i2c/sil164_drv.c index db0b03fb0ff1..ecaa58757529 100644 --- a/drivers/gpu/drm/i2c/sil164_drv.c +++ b/drivers/gpu/drm/i2c/sil164_drv.c @@ -415,7 +415,7 @@ sil164_encoder_init(struct i2c_client *client, return 0; } -static struct i2c_device_id sil164_ids[] = { +static const struct i2c_device_id sil164_ids[] = { { "sil164", 0 }, { } }; |