]> git.karo-electronics.de Git - karo-tx-linux.git/commit
leds: triggers: add invert to heartbeat
authorJiri Prchal <jiri.prchal@aksignal.cz>
Thu, 8 Oct 2015 08:32:26 +0000 (10:32 +0200)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Wed, 28 Oct 2015 11:12:21 +0000 (12:12 +0100)
commit682ec298a3aa426326ed0298b2980d81149c3b3e
tree9e865dfc126e42b99ede9d6ecbf7988259a4ea3c
parenta7b15ab5ae231da5959649dcb11c46b8e07e3f9c
leds: triggers: add invert to heartbeat

This patch adds possibility to invert heartbeat blinking.
The inverted LED is more time ON then OFF. It's because it looks
better when the heartbeat LED is next to other LED which is most
time ON. The invert value is exported same way via sysfs in file
invert like oneshot. I get inspiration from this trigger.

Signed-off-by: Jiri Prchal <jiri.prchal@aksignal.cz>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/trigger/ledtrig-heartbeat.c