]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
Fix pattern handling optimalization
authorPavel Machek <pavel@ucw.cz>
Wed, 24 Oct 2018 20:44:39 +0000 (22:44 +0200)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Thu, 25 Oct 2018 18:47:46 +0000 (20:47 +0200)
commit1b50bb4d36e89fd54c14722c4ab5266ef17767ff
tree879053b37524d99afcb883a0c89e0182310a8974
parent8dbac65f5c181e4723586ab738b703bb23bc3f2a
Fix pattern handling optimalization

Check for zero duration before skipping step. This fixes pattern

    echo "0 1000 10 2550 0 1000" > pattern

which should do [  .-xXx-.] but does [   Xx-.]

Signed-off-by: Pavel Machek <pavel@ucw.cz>
Suggested-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
drivers/leds/trigger/ledtrig-pattern.c