led: fallback from set_brightness to on/off and vice versa automatically

Change the on/off/set_brightness API to automatically use whatever
function is available, this allows dimmable drivers to not implement the
on/off wrapper and vice versa.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
1 file changed