* [PATCH] leds: pca9532: Remove irrelevant error message
@ 2024-08-26 13:32 Bastien Curutchet
2024-08-30 8:02 ` (subset) " Lee Jones
0 siblings, 1 reply; 2+ messages in thread
From: Bastien Curutchet @ 2024-08-26 13:32 UTC (permalink / raw)
To: Riku Voipio, Pavel Machek, Lee Jones, Bastien Curutchet
Cc: linux-leds, linux-kernel, Thomas Petazzoni, Herve Codina,
Christopher Cordahi, stable
The update_hw_blink() function prints an error message when hardware is
not able to handle a blink configuration on its own. IMHO, this isn't a
'real' error since the software fallback is used afterwards.
Remove the error messages to avoid flooding the logs with unnecessary
messages.
Cc: stable@vger.kernel.org
Fixes: 48ca7f302cfc ("leds: pca9532: Use PWM1 for hardware blinking")
Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
---
drivers/leds/leds-pca9532.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/leds/leds-pca9532.c b/drivers/leds/leds-pca9532.c
index 9f3fac66a11c..bcc3063bd441 100644
--- a/drivers/leds/leds-pca9532.c
+++ b/drivers/leds/leds-pca9532.c
@@ -215,8 +215,7 @@ static int pca9532_update_hw_blink(struct pca9532_led *led,
if (other->state == PCA9532_PWM1) {
if (other->ldev.blink_delay_on != delay_on ||
other->ldev.blink_delay_off != delay_off) {
- dev_err(&led->client->dev,
- "HW can handle only one blink configuration at a time\n");
+ /* HW can handle only one blink configuration at a time */
return -EINVAL;
}
}
@@ -224,7 +223,7 @@ static int pca9532_update_hw_blink(struct pca9532_led *led,
psc = ((delay_on + delay_off) * PCA9532_PWM_PERIOD_DIV - 1) / 1000;
if (psc > U8_MAX) {
- dev_err(&led->client->dev, "Blink period too long to be handled by hardware\n");
+ /* Blink period too long to be handled by hardware */
return -EINVAL;
}
--
2.45.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: (subset) [PATCH] leds: pca9532: Remove irrelevant error message
2024-08-26 13:32 [PATCH] leds: pca9532: Remove irrelevant error message Bastien Curutchet
@ 2024-08-30 8:02 ` Lee Jones
0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2024-08-30 8:02 UTC (permalink / raw)
To: Riku Voipio, Pavel Machek, Lee Jones, Bastien Curutchet
Cc: linux-leds, linux-kernel, Thomas Petazzoni, Herve Codina,
Christopher Cordahi, stable
On Mon, 26 Aug 2024 15:32:37 +0200, Bastien Curutchet wrote:
> The update_hw_blink() function prints an error message when hardware is
> not able to handle a blink configuration on its own. IMHO, this isn't a
> 'real' error since the software fallback is used afterwards.
>
> Remove the error messages to avoid flooding the logs with unnecessary
> messages.
>
> [...]
Applied, thanks!
[1/1] leds: pca9532: Remove irrelevant error message
commit: 2aad93b6de0d874038d3d7958be05011284cd6b9
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-30 8:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-26 13:32 [PATCH] leds: pca9532: Remove irrelevant error message Bastien Curutchet
2024-08-30 8:02 ` (subset) " Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®