summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-15 13:23:42 +0200
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-05-29 22:46:08 +0200
commit05a7c22c2f681bf7458bec21eb76e91e6b8713ca (patch)
treea38c4f4e652359e370c1d9d5e6980425ced1617e
parentmedia: staging: media: davinci_vpfe: use __func__ for function names (diff)
downloadlinux-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>
-rw-r--r--drivers/media/platform/omap3isp/isp.c2
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 },
{ },
};