[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191013114508.GI5653@amd>
Date: Sun, 13 Oct 2019 13:45:08 +0200
From: Pavel Machek <pavel@....cz>
To: Jacek Anaszewski <jacek.anaszewski@...il.com>
Cc: Jean-Jacques Hiblot <jjhiblot@...com>, dmurphy@...com,
linux-leds@...r.kernel.org, linux-kernel@...r.kernel.org,
Andrew Lunn <andrew@...n.ch>
Subject: Re: [PATCH] leds: tlc591xx: update the maximum brightness
Hi!
> > @@ -112,11 +113,11 @@ tlc591xx_brightness_set(struct led_classdev *led_cdev,
> > struct tlc591xx_priv *priv = led->priv;
> > int err;
> >
> > - switch (brightness) {
> > + switch ((int)brightness) {
> > case 0:
Can we get a rid of the cast here? Do we need to move away from the
enum for the brightness?
> Added tag:
>
> Fixes: e370d010a5fe ("leds: tlc591xx: Driver for the TI 8/16 Channel i2c
> LED driver")
>
> and applied to the for-5.5 branch.
Actually, careful with the Fixes tag. -stable people will want to
apply it, and it may not be a good idea in this case. Maximum
brightness of 256 is pretty unusual, so I'd call this "a bit risky".
Best regards,
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Download attachment "signature.asc" of type "application/pgp-signature" (182 bytes)
Powered by blists - more mailing lists