[media] media: coda: add const qualifiers
authorEmil Goode <emilgoode@gmail.com>
Tue, 14 Aug 2012 20:44:42 +0000 (17:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 15 Aug 2012 22:15:02 +0000 (19:15 -0300)
The commit 98d7bbb9 changed *of_device_id.data to const
which introduced warnings in various places that have mostly
been fixed. This patch fixes one such warning by introducing
two const qualifiers.

GCC warning:
drivers/media/platform/coda.c:1785:16: warning:
        assignment discards â€˜const’ qualifier
        from pointer target type [enabled by default]

Signed-off-by: Emil Goode <emilgoode@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/coda.c

index 0d6e0a0956079bb91642bd1af4fff2d3435da005..690851400911d1bae3b29f05ee265abc86fc6bd8 100644 (file)
@@ -118,7 +118,7 @@ struct coda_dev {
        struct v4l2_device      v4l2_dev;
        struct video_device     vfd;
        struct platform_device  *plat_dev;
-       struct coda_devtype     *devtype;
+       const struct coda_devtype *devtype;
 
        void __iomem            *regs_base;
        struct clk              *clk_per;
@@ -1687,7 +1687,7 @@ enum coda_platform {
        CODA_IMX27,
 };
 
-static struct coda_devtype coda_devdata[] = {
+static const struct coda_devtype coda_devdata[] = {
        [CODA_IMX27] = {
                .firmware    = "v4l-codadx6-imx27.bin",
                .product     = CODA_DX6,