Skip to content
Commit f59abf59 authored by Simon Guinot's avatar Simon Guinot Committed by Carles Cufí
Browse files

drivers: led: introduce channel-dedicated syscalls



Some LED controllers are connected to a large number of LEDs (i.e.
array/strip of LEDs). A user may need to set several LEDs at the same
time. The LED oriented syscalls are not adapted to this task. Indeed a
call per LED is needed to configure a group of LEDs. To that end, this
patch adds the led_set_channel and led_write_channels syscalls to the
LED API. They offer direct access to the raw channels. They respectively
allow to set a single channel and to write several contiguous channels
(and therefore to configure a group of LEDs).

Moreover the addition of the led_write_channels syscall also aims at
closing the gap with the LED strip API.

Signed-off-by: default avatarSimon Guinot <simon.guinot@seagate.com>
Signed-off-by: default avatarMaxime Bittan <maxime.bittan@seagate.com>
parent 4f5583bf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment