Re: [PATCH] backlight: pwm_bl: Don't assign levels table repeatedly

2019-10-02 Thread Matthias Kaehlcke
On Wed, Oct 02, 2019 at 11:07:37AM +0100, Daniel Thompson wrote: > On Tue, Oct 01, 2019 at 04:29:24PM -0700, Matthias Kaehlcke wrote: > > pwm_backlight_probe() re-assigns pb->levels for every brightness > > level. This is not needed and was likely not intended, since > > neither side of the assignm

Re: [PATCH] backlight: pwm_bl: Don't assign levels table repeatedly

2019-10-02 Thread Daniel Thompson
On Tue, Oct 01, 2019 at 04:29:24PM -0700, Matthias Kaehlcke wrote: > pwm_backlight_probe() re-assigns pb->levels for every brightness > level. This is not needed and was likely not intended, since > neither side of the assignment changes during the loop. Assign > the field only once. > > Signed-of