]> www.infradead.org Git - users/jedix/linux-maple.git/commit
backlight: lcd: Rearrange code in fb_notifier_callback()
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 6 Sep 2024 07:52:15 +0000 (09:52 +0200)
committerLee Jones <lee@kernel.org>
Mon, 30 Sep 2024 15:49:41 +0000 (16:49 +0100)
commitd36870367c187daaa8a2c487d5ff1d57141eb039
tree747412997070d7a23a1dc56199dec24fa9cd5601
parent9852d85ec9d492ebef56dc5f229416c925758edc
backlight: lcd: Rearrange code in fb_notifier_callback()

First acquire the ops_lock and do all tests while holding it. Rearranges
the code in lcd's fb_notifier_callback() to resemble the callback in
the backlight module. This will simplify later changes to these tests.

v2:
- avoid gotos by using guard(mutex) (Daniel)
- fix typos in commit description (Daniel)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240906075439.98476-2-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/lcd.c