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
Attachment:
signature.asc
Description: Digital signature