drivers: led: bcm6858: Set a default brightness when probing LEDs
authorPaul HENRYS <paul.henrys_ext@softathome.com>
Thu, 17 Mar 2022 09:29:47 +0000 (10:29 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 11 Apr 2022 15:39:19 +0000 (11:39 -0400)
commit877de2a369aaeebe7fb0a2f8f1438255d249c6c0
treed5b222914c17c2b7012bab465c4c78afe9eed180
parent5fa973eb2880d8173f99ae68e015e10ab8f89c4b
drivers: led: bcm6858: Set a default brightness when probing LEDs

When probing the LEDs, a default brightness is set based on settings
from the U-Boot device tree, i.e. the 'default-brightness' property
of the LED nodes. If that property is not present, the default
maximum brightness is set.
This should make sure the LED controller's registers affecting the
brightness are correctly initialized and should give a consistent
behaviour.

Signed-off-by: Paul HENRYS <paul.henrys_ext@softathome.com>
drivers/led/led_bcm6858.c