From: Emil Goode <emilgoode@gmail.com>
To: mchehab@infradead.org, s.nawrocki@samsung.com,
p.zabel@pengutronix.de, javier.martin@vista-silicon.com,
hans.verkuil@cisco.com
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org, Emil Goode <emilgoode@gmail.com>
Subject: [PATCH] [media] media: coda: add const qualifiers
Date: Tue, 14 Aug 2012 23:44:42 +0200 [thread overview]
Message-ID: <1344980682-23075-1-git-send-email-emilgoode@gmail.com> (raw)
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/video/coda.c:1785:16: warning:
assignment discards ‘const’ qualifier
from pointer target type [enabled by default]
Signed-off-by: Emil Goode <emilgoode@gmail.com>
---
drivers/media/video/coda.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/video/coda.c b/drivers/media/video/coda.c
index 0d6e0a0..6908514 100644
--- a/drivers/media/video/coda.c
+++ b/drivers/media/video/coda.c
@@ -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,
--
1.7.10.4
reply other threads:[~2012-08-14 21:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1344980682-23075-1-git-send-email-emilgoode@gmail.com \
--to=emilgoode@gmail.com \
--cc=hans.verkuil@cisco.com \
--cc=javier.martin@vista-silicon.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.org \
--cc=p.zabel@pengutronix.de \
--cc=s.nawrocki@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome