[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191016075218.GB4365@dell>
Date: Wed, 16 Oct 2019 08:52:18 +0100
From: Lee Jones <lee.jones@...aro.org>
To: Matthias Kaehlcke <mka@...omium.org>
Cc: Thierry Reding <thierry.reding@...il.com>,
Daniel Thompson <daniel.thompson@...aro.org>,
Jingoo Han <jingoohan1@...il.com>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>,
linux-pwm@...r.kernel.org, linux-fbdev@...r.kernel.org,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] backlight: pwm_bl: Don't assign levels table
repeatedly
On Wed, 02 Oct 2019, 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-off-by: Matthias Kaehlcke <mka@...omium.org>
> ---
>
> Changes in v2:
> - removed curly braces from for loop
>
> drivers/video/backlight/pwm_bl.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
Applied, thanks.
--
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Powered by blists - more mailing lists