leds: bcm63138: Use %pe to print pinctrl error instead of %ld

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>
Link: https://patch.msgid.link/20260713200732.2470666-1-ninadnaik07@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
Ninad Naik
2026-07-23 13:26:56 +01:00
committed by Lee Jones
parent 2ebd1cb772
commit b6e08e0ad4
+2 -2
View File
@@ -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);