summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-at91-pio4.c
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2023-03-02 12:01:16 +0100
committerLinus Walleij <linus.walleij@linaro.org>2023-03-07 14:13:04 +0100
commit5a8f9cf269e8e33b8381f6dafb034c6da49f8228 (patch)
treee4882a4405965d868b8bf220b494707e2ff41266 /drivers/pinctrl/pinctrl-at91-pio4.c
parentpinctrl: at91-pio4: use dev_err_probe() (diff)
downloadlinux-5a8f9cf269e8e33b8381f6dafb034c6da49f8228.tar.xz
linux-5a8f9cf269e8e33b8381f6dafb034c6da49f8228.zip
pinctrl: at91-pio4: use proper format specifier for unsigned int
Use %u instead of %d as line is unsigned int. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Link: https://lore.kernel.org/r/20230302110116.342486-5-claudiu.beznea@microchip.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-at91-pio4.c')
-rw-r--r--drivers/pinctrl/pinctrl-at91-pio4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c
index 86ff3dd8d3a6..e40487be2038 100644
--- a/drivers/pinctrl/pinctrl-at91-pio4.c
+++ b/drivers/pinctrl/pinctrl-at91-pio4.c
@@ -1144,7 +1144,7 @@ static int atmel_pinctrl_probe(struct platform_device *pdev)
pin_desc[i].number = i;
/* Pin naming convention: P(bank_name)(bank_pin_number). */
- pin_desc[i].name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "P%c%d",
+ pin_desc[i].name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "P%c%u",
bank + 'A', line);
group->name = group_names[i] = pin_desc[i].name;