Commit 91facc22 authored by Johannes Berg's avatar Johannes Berg Committed by Linus Torvalds

led_class: fix typo in blink API

When I added led_blink_set I had a typo: the return value of the hw
offload is a regular error code that is zero when succesful, and in that
case software emulation should not be used, rather than the other way
around.
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Cc: Richard Purdie <rpurdie@linux.intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5a2d6e31
...@@ -267,7 +267,7 @@ void led_blink_set(struct led_classdev *led_cdev, ...@@ -267,7 +267,7 @@ void led_blink_set(struct led_classdev *led_cdev,
unsigned long *delay_off) unsigned long *delay_off)
{ {
if (led_cdev->blink_set && if (led_cdev->blink_set &&
led_cdev->blink_set(led_cdev, delay_on, delay_off)) !led_cdev->blink_set(led_cdev, delay_on, delay_off))
return; return;
/* blink with 1 Hz as default if nothing specified */ /* blink with 1 Hz as default if nothing specified */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment