lkml.org 
[lkml]   [2022]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/2] leds: trigger: pattern: notify usespace if pattern finished
Date
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

\
 
 \ /
  Last update: 2022-11-21 13:40    [W:0.040 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site