media: omap3isp: constify platform_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 15 Aug 2017 11:23:42 +0000 (07:23 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 29 May 2019 20:46:08 +0000 (16:46 -0400)
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>
drivers/media/platform/omap3isp/isp.c

index 5f30b80..008933b 100644 (file)
@@ -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 },
        { },
 };