Skip to content

Commit f3ef9d6

Browse files
tititiou36lag-linaro
authored andcommitted
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
1 parent 9f6ffd0 commit f3ef9d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/leds/rgb/leds-pwm-multicolor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ static int led_pwm_mc_probe(struct platform_device *pdev)
158158
ret = led_pwm_mc_set(cdev, cdev->brightness);
159159
if (ret)
160160
return dev_err_probe(&pdev->dev, ret,
161-
"failed to set led PWM value for %s: %d",
162-
cdev->name, ret);
161+
"failed to set led PWM value for %s\n",
162+
cdev->name);
163163

164164
platform_set_drvdata(pdev, priv);
165165
return 0;

0 commit comments

Comments
 (0)