summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>2014-06-26 18:57:14 +0200
committerLinus Walleij <linus.walleij@linaro.org>2014-07-11 14:08:34 +0200
commit719e231bed5b1c638c7f48a657547562fc2064a3 (patch)
tree02acd31228b91f8a0c44ba45748799145708c67f /drivers/pinctrl
parent849bfe0637fd45bf50aac3b12e7e56248c0b9031 (diff)
downloadblackbird-op-linux-719e231bed5b1c638c7f48a657547562fc2064a3.tar.gz
blackbird-op-linux-719e231bed5b1c638c7f48a657547562fc2064a3.zip
pinctrl: pinctrl-adi2.c: Cleaning up wrong format string usage
%d in format string used, but the type is unsigned int This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/pinctrl-adi2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-adi2.c b/drivers/pinctrl/pinctrl-adi2.c
index b02ee4f882c0..46413e93d850 100644
--- a/drivers/pinctrl/pinctrl-adi2.c
+++ b/drivers/pinctrl/pinctrl-adi2.c
@@ -401,7 +401,7 @@ static int adi_gpio_irq_type(struct irq_data *d, unsigned int type)
if (type & (IRQ_TYPE_EDGE_RISING | IRQ_TYPE_EDGE_FALLING |
IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_LEVEL_LOW)) {
- snprintf(buf, 16, "gpio-irq%d", irq);
+ snprintf(buf, 16, "gpio-irq%u", irq);
port_setup(port, d->hwirq, true);
} else
goto out;
OpenPOWER on IntegriCloud