[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1570029181-11102-1-git-send-email-akinobu.mita@gmail.com>
Date: Thu, 3 Oct 2019 00:12:59 +0900
From: Akinobu Mita <akinobu.mita@...il.com>
To: linux-leds@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Akinobu Mita <akinobu.mita@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Jacek Anaszewski <jacek.anaszewski@...il.com>,
Pavel Machek <pavel@....cz>, Dan Murphy <dmurphy@...com>
Subject: [PATCH -next 0/2] leds: add substitutes for /sys/class/leds/<led>/trigger
Reading /sys/class/leds/<led>/trigger returns all available LED triggers.
However, this violates the "one value per file" rule of sysfs.
This series provides a new /sys/devices/virtual/led-trigger/ directory and
/sys/class/leds/<led>/current-trigger. The new api follows the "one value
per file" rule of sysfs.
This series was previously developed as a part of the series "leds: fix
/sys/class/leds/<led>/trigger and add new api" [1]. Now this version
only contains the new api part.
[1] https://lore.kernel.org/r/1567946472-10075-1-git-send-email-akinobu.mita@gmail.com
Akinobu Mita (2):
leds: add /sys/devices/virtual/led-trigger/
leds: add /sys/class/leds/<led>/current-trigger
Documentation/ABI/testing/sysfs-class-led | 13 +++
.../ABI/testing/sysfs-devices-virtual-led-trigger | 8 ++
drivers/leds/led-class.c | 10 +++
drivers/leds/led-triggers.c | 95 +++++++++++++++++++++-
drivers/leds/leds.h | 5 ++
include/linux/leds.h | 3 +
6 files changed, 130 insertions(+), 4 deletions(-)
create mode 100644 Documentation/ABI/testing/sysfs-devices-virtual-led-trigger
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: "Rafael J. Wysocki" <rafael@...nel.org>
Cc: Jacek Anaszewski <jacek.anaszewski@...il.com>
Cc: Pavel Machek <pavel@....cz>
Cc: Dan Murphy <dmurphy@...com>
--
2.7.4
Powered by blists - more mailing lists