Re: [PATCH RFC leds + net-next 3/7] leds: trigger: add API for HW offloading of triggers

2021-03-01 Thread Pavel Machek
Hi! > If the trigger with given configuration cannot be offloaded, the method > should return -EOPNOTSUPP, in which case the trigger must blink the LED > in SW. > > Signed-off-by: Marek BehĂșn > + > +If the second argument (enable) to the trigger_offload() method is false, any > +active HW offlo

[PATCH RFC leds + net-next 3/7] leds: trigger: add API for HW offloading of triggers

2020-10-30 Thread Marek BehĂșn
Add method trigger_offload() and member variable `offloaded` to struct led_classdev. Add helper functions led_trigger_offload() and led_trigger_offload_stop(). The trigger_offload() method, when implemented by the LED driver, should be called (via led_trigger_offload() function) from trigger code