Skip to content

Commit

Permalink
[media] media: coda: add const qualifiers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Emil Goode authored and Mauro Carvalho Chehab committed Aug 15, 2012
1 parent 82026f9 commit c06d875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/platform/coda.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c06d875

Please sign in to comment.