[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200308142722.1199260-1-t.schramm@manjaro.org>
Date: Sun, 8 Mar 2020 15:27:21 +0100
From: Tobias Schramm <t.schramm@...jaro.org>
To: Jacek Anaszewski <jacek.anaszewski@...il.com>,
Pavel Machek <pavel@....cz>, Dan Murphy <dmurphy@...com>
Cc: linux-leds@...r.kernel.org, linux-kernel@...r.kernel.org,
Tobias Schramm <t.schramm@...jaro.org>
Subject: [RFC PATCH 0/1] Add generic inverted led triggers
This patch adds generic inverted LED triggers. With this patch applied
any trigger can be used with inverted brightness levels by appending
"-inverted" to the name of a trigger.
This is can be useful for devices that do not have dedicated LEDs for e.g.
disk activity indication. With this patch applied the power led can be set
to default-state = on and trigger = disk-activity-inverted. Then the led
will be on by default, indicating the power state of the device but it
will turn off briefly whenever there is disk activity.
I think dual-use of LEDs might come in handy for quite a few devices since
a lot of embedded boards and upcoming ARM based notebooks do only have one
or two LEDs.
Best regards,
Tobias
Tobias Schramm (1):
leds: add generic inverted led trigger support
drivers/leds/led-triggers.c | 148 +++++++++++++++++++++++++++---------
include/linux/leds.h | 1 +
2 files changed, 111 insertions(+), 38 deletions(-)
--
2.24.1
Powered by blists - more mailing lists