leds: pca955x: Implement the default-state property
authorEddie James <eajames@linux.ibm.com>
Fri, 16 Jul 2021 22:03:29 +0000 (17:03 -0500)
committerPavel Machek <pavel@ucw.cz>
Fri, 20 Aug 2021 09:00:07 +0000 (11:00 +0200)
commite46cb6d0c760a5b15e38138845fad99628fafcb8
treed370100a1e6a4076bfb003282d28cea78325800a
parent7086625fde6538b2c0623eb767ad23c7ac3d7f3a
leds: pca955x: Implement the default-state property

In order to retain the LED state after a system reboot, check the
documented default-state device tree property during initialization.
Modify the behavior of the probe according to the property.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-pca955x.c