summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-ss4200.c
diff options
context:
space:
mode:
authorEddie James <eajames@linux.ibm.com>2021-07-16 17:03:26 -0500
committerPavel Machek <pavel@ucw.cz>2021-08-20 11:00:06 +0200
commit419066324e19a47b98cdcf5defda42de555a8957 (patch)
tree161eeb1283f1c4a6cca6e25cd037088058c2f33d /drivers/leds/leds-ss4200.c
parent5d823d6d69853ae07786ddf786f7693b57e76beb (diff)
leds: leds-core: Implement the retain-state-shutdown property
Read the retain-state-shutdown device tree property to set the existing LED_RETAIN_AT_SHUTDOWN flag. Then check the flag when unregistering, and if set, don't set the brightness to OFF. This is useful for systems that want to keep the HW state of the LED across reboots. Signed-off-by: Eddie James <eajames@linux.ibm.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'drivers/leds/leds-ss4200.c')
0 files changed, 0 insertions, 0 deletions