diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-15 07:23:40 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-20 08:24:24 -0400 |
commit | 89ac34aaf5e6347638146f46c7e9f78c951938a8 (patch) | |
tree | 3d03b42930cd8f8fa3ef14efd962acd11fa53494 /drivers/media/platform | |
parent | 8219760c0e4131da1ce7f4fd970de60540569bdc (diff) | |
download | linux-89ac34aaf5e6347638146f46c7e9f78c951938a8.tar.gz linux-89ac34aaf5e6347638146f46c7e9f78c951938a8.tar.bz2 linux-89ac34aaf5e6347638146f46c7e9f78c951938a8.zip |
media: coda: constify platform_device_id
platform_device_id are not supposed to change at runtime. All functions
working with platform_device_id provided by <linux/platform_device.h>
work with const platform_device_id. So mark the non-const structs as
const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r-- | drivers/media/platform/coda/coda-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index 27c613752fbf..15eb5dc4dff9 100644 --- a/drivers/media/platform/coda/coda-common.c +++ b/drivers/media/platform/coda/coda-common.c @@ -2447,7 +2447,7 @@ static const struct coda_devtype coda_devdata[] = { }, }; -static struct platform_device_id coda_platform_ids[] = { +static const struct platform_device_id coda_platform_ids[] = { { .name = "coda-imx27", .driver_data = CODA_IMX27 }, { /* sentinel */ } }; |