[PATCH v2 0/2] leds: trigger: pattern: notify usespace if pattern finished

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux