[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221121123833.164614-1-mmkurbanov@sberdevices.ru>
Date: Mon, 21 Nov 2022 15:38:31 +0300
From: Martin Kurbanov <mmkurbanov@...rdevices.ru>
To: Pavel Machek <pavel@....cz>,
Raphael Teysseyre <rteysseyre@...il.com>,
Andy Shevchenko <andy.shevchenko@...il.com>
CC: <linux-kernel@...r.kernel.org>, <linux-leds@...r.kernel.org>,
<kernel@...rdevices.ru>,
Martin Kurbanov <mmkurbanov@...rdevices.ru>
Subject: [PATCH v2 0/2] leds: trigger: pattern: notify usespace if pattern finished
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
Powered by blists - more mailing lists