aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorGravatar Bartosz Golaszewski <bartosz.golaszewski@linaro.org> 2023-06-05 14:52:48 +0200
committerGravatar Bartosz Golaszewski <bartosz.golaszewski@linaro.org> 2023-06-07 10:25:15 +0200
commitbe6736cc5423e9c153f38ca49ed9ba05a02a58f9 (patch)
tree3f3754b300cb68467fecf689c518ea37ee5b2253 /drivers/gpio
parentdt-bindings: gpio: gpio-delay: Spelling s/curcuit/circuit/ (diff)
downloadlinux-be6736cc5423e9c153f38ca49ed9ba05a02a58f9.tar.gz
linux-be6736cc5423e9c153f38ca49ed9ba05a02a58f9.tar.bz2
linux-be6736cc5423e9c153f38ca49ed9ba05a02a58f9.zip
gpiolib: demote the hogging log messages to debug
Drivers should be silent when they work correctly. There's no reason to emit info messages when GPIO lines are hogged. Demote the message to debug. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Suggested-by: Kent Gibson <warthog618@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
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 bb81d9427fbb..d5f23c2b3f30 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -4236,7 +4236,7 @@ int gpiod_hog(struct gpio_desc *desc, const char *name,
/* Mark GPIO as hogged so it can be identified and removed later */
set_bit(FLAG_IS_HOGGED, &desc->flags);
- gpiod_info(desc, "hogged as %s%s\n",
+ gpiod_dbg(desc, "hogged as %s%s\n",
(dflags & GPIOD_FLAGS_BIT_DIR_OUT) ? "output" : "input",
(dflags & GPIOD_FLAGS_BIT_DIR_OUT) ?
(dflags & GPIOD_FLAGS_BIT_DIR_VAL) ? "/high" : "/low" : "");