]> git.karo-electronics.de Git - karo-tx-linux.git/commit
misc: panel: Abstract temporary backlight handling
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 6 Feb 2017 14:38:10 +0000 (15:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Feb 2017 14:34:02 +0000 (15:34 +0100)
commitfda4ae1819ce3603857a6baceda53d2c46d5bbd9
tree3e1d4ba0a0155e452b64d38fd4fd8a689c86218e
parent204a4f6d67a4d7e65571c21bd90039fdccc35b2c
misc: panel: Abstract temporary backlight handling

Currently the periodic scan timer is used for three purposes,
entangling keypad and display handling, which are both optional:
  1. Scanning the keypad,
  2. Flashing the backlight when a key is pressed,
  3. Disabling temporary backlighting after a fixed period of time.

Abstract the second purpose using a new lcd_poke() function.
Make the non-periodic temporary backlight handling independent from
keypad handling by converting it to a delayed workqueue.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/panel.c