From: Jan Moskyto Matejka <mq@suse.cz>
To: Alan Cox <alan@linux.intel.com>,
Thierry Reding <thierry.reding@gmail.com>,
linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Jan Moskyto Matejka <mq@suse.cz>
Subject: [PATCH] [linux-next] pwm: lpss: fix const qualifier discard warning
Date: Fri, 2 May 2014 17:22:59 +0200 [thread overview]
Message-ID: <1399044179-17912-1-git-send-email-mq@suse.cz> (raw)
Fixing this warning:
drivers/pwm/pwm-lpss.c: In function ‘pwm_lpss_probe_pci’:
drivers/pwm/pwm-lpss.c:192:2: warning: passing argument 3 of ‘pwm_lpss_probe’ discards ‘const’ qualifier from pointer target type [enabled by default]
lpwm = pwm_lpss_probe(&pdev->dev, &pdev->resource[0], info);
^
drivers/pwm/pwm-lpss.c:130:30: note: expected ‘struct pwm_lpss_boardinfo *’ but argument is of type ‘const struct pwm_lpss_boardinfo *’
static struct pwm_lpss_chip *pwm_lpss_probe(struct device *dev,
That warning was introduced in commit 093e00bb3f82f3c67e2d1682e316fc012bcd0d92
("pwm: lpss: Add support for PCI devices").
Signed-off-by: Jan Moskyto Matejka <mq@suse.cz>
---
drivers/pwm/pwm-lpss.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pwm/pwm-lpss.c b/drivers/pwm/pwm-lpss.c
index c718ad1..c4620c1 100644
--- a/drivers/pwm/pwm-lpss.c
+++ b/drivers/pwm/pwm-lpss.c
@@ -129,6 +129,7 @@ static const struct pwm_ops pwm_lpss_ops = {
static struct pwm_lpss_chip *pwm_lpss_probe(struct device *dev,
struct resource *r,
+ const
struct pwm_lpss_boardinfo *info)
{
struct pwm_lpss_chip *lpwm;
--
1.8.4.5
next reply other threads:[~2014-05-02 15:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-02 15:22 Jan Moskyto Matejka [this message]
2014-05-07 8:41 ` Thierry Reding
2014-05-07 9:48 ` Alan Cox
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=1399044179-17912-1-git-send-email-mq@suse.cz \
--to=mq@suse.cz \
--cc=alan@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=thierry.reding@gmail.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
all inboxes | Powered by JetHome®