diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-15 13:23:42 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-05-29 22:46:08 +0200 |
commit | 05a7c22c2f681bf7458bec21eb76e91e6b8713ca (patch) | |
tree | a38c4f4e652359e370c1d9d5e6980425ced1617e /drivers/media/platform/omap3isp/isp.c | |
parent | media: staging: media: davinci_vpfe: use __func__ for function names (diff) | |
download | linux-05a7c22c2f681bf7458bec21eb76e91e6b8713ca.tar.xz linux-05a7c22c2f681bf7458bec21eb76e91e6b8713ca.zip |
media: omap3isp: 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>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/omap3isp/isp.c')
-rw-r--r-- | drivers/media/platform/omap3isp/isp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c index 5f30b802d319..008933beebe0 100644 --- a/drivers/media/platform/omap3isp/isp.c +++ b/drivers/media/platform/omap3isp/isp.c @@ -2389,7 +2389,7 @@ static const struct dev_pm_ops omap3isp_pm_ops = { .complete = isp_pm_complete, }; -static struct platform_device_id omap3isp_id_table[] = { +static const struct platform_device_id omap3isp_id_table[] = { { "omap3isp", 0 }, { }, }; |