diff options
author | Mans Rullgard <mans@mansr.com> | 2019-03-01 18:48:16 +0000 |
---|---|---|
committer | Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> | 2019-03-17 08:48:45 +0100 |
commit | cc5d04d840d62d7c75e268c51da7cd0be2ee03c0 (patch) | |
tree | 77da64723c06ebee1c22f5959e5af794b64b616a /drivers/auxdisplay/Kconfig | |
parent | c9171722459fdeab0f27790ae04c0c5a4ae5a9b2 (diff) | |
download | linux-cc5d04d840d62d7c75e268c51da7cd0be2ee03c0.tar.bz2 |
auxdisplay: charlcd: make backlight initial state configurable
The charlcd driver currently flashes the backlight once on init.
This may not be desirable. Thus, add options for turning the
backlight off or on as well.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Diffstat (limited to 'drivers/auxdisplay/Kconfig')
-rw-r--r-- | drivers/auxdisplay/Kconfig | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/auxdisplay/Kconfig b/drivers/auxdisplay/Kconfig index 7d3fe27d6868..c52c738e554a 100644 --- a/drivers/auxdisplay/Kconfig +++ b/drivers/auxdisplay/Kconfig @@ -445,6 +445,27 @@ config PANEL_BOOT_MESSAGE An empty message will only clear the display at driver init time. Any other printf()-formatted message is valid with newline and escape codes. +choice + prompt "Backlight initial state" + default CHARLCD_BL_FLASH + + config CHARLCD_BL_OFF + bool "Off" + help + Backlight is initially turned off + + config CHARLCD_BL_ON + bool "On" + help + Backlight is initially turned on + + config CHARLCD_BL_FLASH + bool "Flash" + help + Backlight is flashed briefly on init + +endchoice + endif # AUXDISPLAY config PANEL |