aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorWang Dongsheng <dongsheng.wang@hxt-semitech.com>2018-02-27 00:12:13 -0800
committerLinus Walleij <linus.walleij@linaro.org>2018-03-02 08:45:41 +0100
commit9d5a1f2ca6618bffd79c834d3e090a086fe35e6a (patch)
tree91328e3804b8d4fc683b1e45b819449883e88c36 /drivers/gpio
parentgpio: Drop TZ1090 drivers (diff)
downloadlinux-dev-9d5a1f2ca6618bffd79c834d3e090a086fe35e6a.tar.xz
linux-dev-9d5a1f2ca6618bffd79c834d3e090a086fe35e6a.zip
gpiolib: friendly debug information for consumer
"failed" maybe makes observer confuse when a consumer can not lookup, so change to a friendly information. Signed-off-by: Wang Dongsheng <dongsheng.wang@hxt-semitech.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpiolib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index d66de67ef307..f220d844b607 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -3689,7 +3689,7 @@ struct gpio_desc *__must_check gpiod_get_index(struct device *dev,
}
if (IS_ERR(desc)) {
- dev_dbg(dev, "lookup for GPIO %s failed\n", con_id);
+ dev_dbg(dev, "No GPIO consumer %s found\n", con_id);
return desc;
}