projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
544a694
)
staging: greybus: light: check the correct value of delay_on
author
Rui Miguel Silva
<rmfrfs@gmail.com>
Fri, 30 Sep 2016 17:26:55 +0000
(18:26 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 2 Oct 2016 13:49:26 +0000
(15:49 +0200)
When checking the value of delay_on to set the channel as active, it was
checked the pointer and not the value, as it should be.
Fixes:
cc43368a3c
("greybus: lights: Control runtime pm suspend/resume on AP side")
Signed-off-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/light.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/light.c
b/drivers/staging/greybus/light.c
index
80dc4a9
..
8dffd8a
100644
(file)
--- a/
drivers/staging/greybus/light.c
+++ b/
drivers/staging/greybus/light.c
@@
-483,7
+483,7
@@
static int gb_blink_set(struct led_classdev *cdev, unsigned long *delay_on,
if (ret < 0)
goto out_pm_put;
- if (delay_on)
+ if (
*
delay_on)
channel->active = true;
else
channel->active = false;