In the current moment, userspace caller can schedule LED pattern with appropriate parameters, but it doesn't have ability to listen to any events indicated pattern finished. This patch series add support for a 'is_running' attribute to signal LED pattern state to userspace. For example of user space code how to use the feature: https://gist.github.com/m-kurbanov/775408521c436a371c3640d49808d08d Changes v1 -> v2: - code style fixes (Andy Shevchenko) - typo fixes (Andy Shevchenko) - add ABI documentation (Andy Shevchenko) - added example on the gist (Andy Shevchenko) Martin Kurbanov (2): leds: trigger: pattern: minor code style changes leds: trigger: pattern: notify usespace if pattern finished .../testing/sysfs-class-led-trigger-pattern | 11 +++ drivers/leds/trigger/ledtrig-pattern.c | 92 ++++++++++++++----- 2 files changed, 80 insertions(+), 23 deletions(-) -- 2.38.1