Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] leds: bcm63138: Use %pe to print pinctrl error instead of %ld
@ 2026-07-13 20:07 Ninad Naik
  0 siblings, 0 replies; only message in thread
From: Ninad Naik @ 2026-07-13 20:07 UTC (permalink / raw)
  To: lee, pavel, william.zhang, anand.gore, kursad.oney,
	florian.fainelli, rafal, linux, krzysztof.kozlowski, tzungbi
  Cc: bcm-kernel-feedback-list, linux-leds, linux-arm-kernel,
	linux-kernel, skhan, me, Ninad Naik

Pass the pinctrl error pointer directly to %pe to print the
symbolic error name.
Detected by Coccinelle. Tested by compiling.

Signed-off-by: Ninad Naik <ninadnaik07@gmail.com>
---
 drivers/leds/blink/leds-bcm63138.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/leds/blink/leds-bcm63138.c b/drivers/leds/blink/leds-bcm63138.c
index 45c0662df933..12b70ee31b9a 100644
--- a/drivers/leds/blink/leds-bcm63138.c
+++ b/drivers/leds/blink/leds-bcm63138.c
@@ -236,8 +236,8 @@ static void bcm63138_leds_create_led(struct bcm63138_leds *leds,
 
 	pinctrl = devm_pinctrl_get_select_default(led->cdev.dev);
 	if (IS_ERR(pinctrl) && PTR_ERR(pinctrl) != -ENODEV) {
-		dev_warn(led->cdev.dev, "Failed to select %pOF pinctrl: %ld\n",
-			 np, PTR_ERR(pinctrl));
+		dev_warn(led->cdev.dev, "Failed to select %pOF pinctrl: %pe\n",
+			 np, pinctrl);
 	}
 
 	bit = BIT(led->pin);
-- 
2.55.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-13 20:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-13 20:07 [PATCH] leds: bcm63138: Use %pe to print pinctrl error instead of %ld Ninad Naik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox