summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-hisi.c
diff options
context:
space:
mode:
authorDevyn Liu <liudingyuan@huawei.com>2023-10-12 18:54:11 +0800
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-10-13 08:39:30 +0200
commit4f3b436eea7d7242ca5c528fca1d2d15bc242190 (patch)
treeba11552bc886abfbd45255c98ce3d2583fe9fd8b /drivers/gpio/gpio-hisi.c
parent668706b10c9b8181a53bd8881a77bb81b328ab33 (diff)
downloadlwn-4f3b436eea7d7242ca5c528fca1d2d15bc242190.tar.gz
lwn-4f3b436eea7d7242ca5c528fca1d2d15bc242190.zip
gpio: hisi: Fix format specifier
The hisi_gpio->line is unsigned int so the format specifier should have been %u not %d. Signed-off-by: Devyn Liu <liudingyuan@huawei.com> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-hisi.c')
-rw-r--r--drivers/gpio/gpio-hisi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-hisi.c b/drivers/gpio/gpio-hisi.c
index 29a03de37fd8..ef5cc654a24e 100644
--- a/drivers/gpio/gpio-hisi.c
+++ b/drivers/gpio/gpio-hisi.c
@@ -255,7 +255,7 @@ static void hisi_gpio_get_pdata(struct device *dev,
hisi_gpio->irq = platform_get_irq(pdev, idx);
dev_info(dev,
- "get hisi_gpio[%d] with %d lines\n", idx,
+ "get hisi_gpio[%d] with %u lines\n", idx,
hisi_gpio->line_num);
idx++;