projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
668706b
)
gpio: hisi: Fix format specifier
author
Devyn Liu
<liudingyuan@huawei.com>
Thu, 12 Oct 2023 10:54:11 +0000
(18:54 +0800)
committer
Bartosz Golaszewski
<bartosz.golaszewski@linaro.org>
Fri, 13 Oct 2023 06:39:30 +0000
(08:39 +0200)
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>
drivers/gpio/gpio-hisi.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-hisi.c
b/drivers/gpio/gpio-hisi.c
index 29a03de37fd861300cb8e1a5b249c53f13a0f5ca..ef5cc654a24e2327510b872563e68fb0b9aaef71 100644
(file)
--- 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++;