Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1715727
| From | Arvind Yadav <arvind.yadav.cs@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/3] drm: i2c: sil164: constify i2c_device_id |
| Date | 2017-08-19 20:30 +0200 |
| Message-ID | <uggFs-4Ht-17@gated-at.bofh.it> (permalink) |
| References | <uggFr-4Ht-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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>
---
drivers/gpu/drm/i2c/sil164_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i2c/sil164_drv.c b/drivers/gpu/drm/i2c/sil164_drv.c
index db0b03f..ecaa587 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 },
{ }
};
--
2.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/3] constify drm i2c_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-19 20:30 +0200
[PATCH 1/3] drm: i2c: ch7006: constify i2c_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-19 20:30 +0200
[PATCH 2/3] drm: i2c: sil164: constify i2c_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-19 20:30 +0200
[PATCH 3/3] drm: i2c: tda998x: constify i2c_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-19 20:30 +0200
Re: [PATCH 0/3] constify drm i2c_device_id Daniel Vetter <daniel@ffwll.ch> - 2017-08-22 08:40 +0200
Re: [PATCH 0/3] constify drm i2c_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-22 11:50 +0200
csiph-web