]> www.infradead.org Git - users/jedix/linux-maple.git/commit
backlight: Move blank-state handling into helper
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 21 Mar 2025 09:53:58 +0000 (10:53 +0100)
committerLee Jones <lee@kernel.org>
Thu, 10 Apr 2025 09:39:01 +0000 (10:39 +0100)
commit4bfb77f3381627640e97e0e423c93a2ea93e7de7
treea88e793bf46544aaed626c23b8192790a0b65032
parent726491f2038ec71122d45700f3abf36fdb277aaa
backlight: Move blank-state handling into helper

Move the handling of blank-state updates into a separate helper,
so that is can be called without the fbdev event. No functional
changes.

As a minor improvement over the original code, the update replaces
manual locking with a guard.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: "Daniel Thompson (RISCstar)" <danielt@kernel.org>
Acked-by: Simona Vetter <simona.vetter@ffwll.ch>
Link: https://lore.kernel.org/r/20250321095517.313713-6-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/backlight.c