summaryrefslogtreecommitdiff
path: root/drivers/leds
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2023-04-15 18:27:11 +0200
committerLee Jones <lee@kernel.org>2023-04-20 12:32:14 +0100
commitf3ef9d668b8b1b0e3e91dd9ea532f9d60eb61704 (patch)
treeeaff6dd2ea9eaaa84d039e985e574af9515255a2 /drivers/leds
parent9f6ffd0da650f6ed264e124a3d6bb4e11a49f9f1 (diff)
leds: pwm-multicolor: Simplify an error message
dev_err_probe() already display the error code. There is no need to duplicate it explicitly in the error message. While at it, add a missing \n at the end of the message. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/07d35e221faaa380fd11cd4597e42354c8eb350c.1681576017.git.christophe.jaillet@wanadoo.fr
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/rgb/leds-pwm-multicolor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/leds/rgb/leds-pwm-multicolor.c b/drivers/leds/rgb/leds-pwm-multicolor.c
index da9d2218ae18..46cd062b8b24 100644
--- a/drivers/leds/rgb/leds-pwm-multicolor.c
+++ b/drivers/leds/rgb/leds-pwm-multicolor.c
@@ -158,8 +158,8 @@ static int led_pwm_mc_probe(struct platform_device *pdev)
ret = led_pwm_mc_set(cdev, cdev->brightness);
if (ret)
return dev_err_probe(&pdev->dev, ret,
- "failed to set led PWM value for %s: %d",
- cdev->name, ret);
+ "failed to set led PWM value for %s\n",
+ cdev->name);
platform_set_drvdata(pdev, priv);
return 0;