[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Yic0i9DFzv3bWoTz@google.com>
Date: Tue, 8 Mar 2022 10:48:43 +0000
From: Lee Jones <lee.jones@...aro.org>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: Daniel Thompson <daniel.thompson@...aro.org>,
Jingoo Han <jingoohan1@...il.com>,
Helge Deller <deller@....de>, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org, dri-devel@...ts.freedesktop.org,
linux-fbdev@...r.kernel.org
Subject: Re: [PATCH] backlight: backlight: Slighly simplify
devm_of_find_backlight()
On Sun, 13 Feb 2022, Christophe JAILLET wrote:
> Use devm_add_action_or_reset() instead of devm_add_action()+hand writing
> what is done in the release function, should an error occur.
>
> This is more straightforward and saves a few lines of code.
>
> While at it, remove a useless test in devm_backlight_release(). 'data' is
> known to be not NULL when this function is called.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
> ---
> drivers/video/backlight/backlight.c | 10 ++++------
> 1 file changed, 4 insertions(+), 6 deletions(-)
Applied, thanks.
--
Lee Jones [李琼斯]
Principal Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
Powered by blists - more mailing lists