From: Stas Sergeev Date: Thu, 14 May 2015 15:24:02 +0000 (-0700) Subject: leds: fix brightness changing when software blinking is active X-Git-Tag: omap-for-v4.2/fixes-rc1^2~51^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76931edd54f87d1e49536cd068df4783fae24d45;p=pandora-kernel.git leds: fix brightness changing when software blinking is active The following sequence: echo timer >/sys/class/leds//trigger echo 1 >/sys/class/leds//brightness should change the ON brightness for blinking. The function led_set_brightness() was mistakenly initiating the delayed blink stop procedure, which resulted in no blinking with the timer trigger still active. This patch fixes the problem by changing led_set_brightness() to not initiate the delayed blink stop when brightness is not 0. CC: Richard Purdie CC: Kyungmin Park CC: linux-leds@vger.kernel.org CC: linux-kernel@vger.kernel.org Acked-by: Jacek Anaszewski Signed-off-by: Stas Sergeev Signed-off-by: Bryan Wu --- Reading git-diff-tree failed