Skip to content
Commit 29d76dfa authored by Henrique de Moraes Holschuh's avatar Henrique de Moraes Holschuh Committed by Richard Purdie
Browse files

leds: Add support to leds with readable status



Some led hardware allows drivers to query the led state, and this patch
adds a hook to let the led class take advantage of that information when
available.

Without this functionality, when access to the led hardware is not
exclusive (i.e. firmware or hardware might change its state behind the
kernel's back), reality goes out of sync with the led class' idea of what
the led is doing, which is annoying at best.

Behaviour for drivers that do not or cannot read the led status is
unchanged.

Signed-off-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: default avatarRichard Purdie <rpurdie@rpsys.net>
parent ca3259b3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment