Jacek, 08.06.19 01:12, Oleh Kravchenko пише: > Hello Jacek, > > 08.06.19 00:48, Oleh Kravchenko пише: >> Jacek, >> >>> For blinking you can use blink_set op. To be able to recommend >>> you anoptimal solution for the effect we would need more >>> details regarding its nature. >> >> Thanks, I will do that. >> But how to properly handle other effects? Not only blinking? > > int (*blink_set)(struct led_classdev *led_cdev, > unsigned long *delay_on, > unsigned long *delay_off); > > My LED board doesn't support any delay settings at all. > Should I always set delay_on, delay_off to zero? How to blink from userspace? sysfs looks like doesn't have any property for that :( brightness device -> ../../../spi0.0 max_brightness power subsystem -> ../../../../../../../../../class/leds trigger uevent >> And how to define it by device tree? >> Driver can't get this information about what is really supported. >> I don't want define effect code inside DT. >> >> >>>>> This is a new driver there should be no DT that has this compatible or > -- Best regards, Oleh Kravchenko
Attachment:
signature.asc
Description: OpenPGP digital signature