From: <patrice.chotard@st.com>
To: <linux-kernel@vger.kernel.org>,
Linus Walleij <linus.walleij@linaro.org>,
<linux-arm-kernel@lists.infradead.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: <patrice.chotard@st.com>
Subject: [PATCH 1/2] pinctrl: stm32: fix warning
Date: Thu, 12 May 2016 16:46:34 +0200 [thread overview]
Message-ID: <1463064395-4669-2-git-send-email-patrice.chotard@st.com> (raw)
In-Reply-To: <1463064395-4669-1-git-send-email-patrice.chotard@st.com>
From: Patrice Chotard <patrice.chotard@st.com>
fix compilation warning :
drivers/pinctrl/stm32/pinctrl-stm32.c:823:7: warning: too many arguments for format [-Wformat-extra-args]
speeds[speed], "speed");
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
---
drivers/pinctrl/stm32/pinctrl-stm32.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c
index 1527740..249da52 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32.c
+++ b/drivers/pinctrl/stm32/pinctrl-stm32.c
@@ -806,21 +806,21 @@ static void stm32_pconf_dbg_show(struct pinctrl_dev *pctldev,
drive = stm32_pconf_get_driving(bank, offset);
speed = stm32_pconf_get_speed(bank, offset);
val = stm32_pconf_output_get(bank, offset);
- seq_printf(s, "- %s - %s - %s - %s %s",
+ seq_printf(s, "- %s - %s - %s - %s speed",
val ? "high" : "low",
drive ? "open drain" : "push pull",
biasing[bias],
- speeds[speed], "speed");
+ speeds[speed]);
break;
/* alternate */
case 2:
drive = stm32_pconf_get_driving(bank, offset);
speed = stm32_pconf_get_speed(bank, offset);
- seq_printf(s, "%d - %s -%s", alt,
+ seq_printf(s, "%d - %s -%s - %s speed", alt,
drive ? "open drain" : "push pull",
biasing[bias],
- speeds[speed], "speed");
+ speeds[speed]);
break;
/* analog */
--
1.9.1
next prev parent reply other threads:[~2016-05-12 14:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-12 14:46 [PATCH 0/2] pinctrl: stm32: .pin_config_dbg_show fixes patrice.chotard
2016-05-12 14:46 ` patrice.chotard [this message]
2016-05-12 14:46 ` [PATCH 2/2] pinctrl: stm32: factorize stm32_pconf_input/output_get() patrice.chotard
2016-05-24 11:04 ` [PATCH 0/2] pinctrl: stm32: .pin_config_dbg_show fixes Linus Walleij
2016-05-24 11:12 ` Patrice Chotard
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=1463064395-4669-2-git-send-email-patrice.chotard@st.com \
--to=patrice.chotard@st.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mcoquelin.stm32@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®