leds: gpio: Allow LED to retain state at shutdown
authorAndrew Jeffery <andrew@aj.id.au>
Mon, 28 Aug 2017 00:17:11 +0000 (09:47 +0930)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Tue, 29 Aug 2017 19:10:40 +0000 (21:10 +0200)
commitf5808ac158f2b16b686a3d3c0879c5d6048aba14
treee223e075b1e3b1877d644c2104effb193077c4eb
parent0f34f958768c48037ce19cdc5d863a7316a86d44
leds: gpio: Allow LED to retain state at shutdown

In some systems, such as Baseboard Management Controllers (BMCs), we
want to retain the state of LEDs across a reboot of the BMC (whilst the
host remains up). Implement support for the retain-state-shutdown
devicetree property in leds-gpio.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Acked-by: Pavel Machek <pavel@ucw.cz>
Tested-by: Brandon Wyman <bjwyman@gmail.com>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
drivers/leds/leds-gpio.c
include/linux/leds.h