Thread (3 messages) 3 messages, 3 authors, 2022-03-08

Re: [PATCH] backlight: backlight: Slighly simplify devm_of_find_backlight()

From: Lee Jones <hidden>
Date: 2022-03-08 10:48:51
Also in: dri-devel, kernel-janitors, lkml

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 <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help