projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a56852
)
Revert "leds: cpcap: HACK: turn off led for brightness of 0 and 1."
author
Colin Cross
<ccross@android.com>
Thu, 2 Dec 2010 02:34:00 +0000
(18:34 -0800)
committer
Colin Cross
<ccross@android.com>
Thu, 2 Dec 2010 02:34:00 +0000
(18:34 -0800)
This reverts commit
d791b66f35e963d6b50d9f6809198d94ddd5bb1c
.
drivers/leds/leds-ld-cpcap.c
patch
|
blob
|
history
diff --git
a/drivers/leds/leds-ld-cpcap.c
b/drivers/leds/leds-ld-cpcap.c
index df0e697de019ac76d451e0ecd302afb1df25d268..0c114f18c60831f98f4a06bfa994f6668be7c267 100755
(executable)
--- a/
drivers/leds/leds-ld-cpcap.c
+++ b/
drivers/leds/leds-ld-cpcap.c
@@
-84,7
+84,7
@@
static void cpcap_brightness_work(struct work_struct *work)
brightness = cpcap_led_data->brightness;
- if (brightness >
1
) {
+ if (brightness >
0
) {
brightness = (cpcap_led_data->pdata->cpcap_reg_period |
cpcap_led_data->pdata->cpcap_reg_duty_cycle |
cpcap_led_data->pdata->cpcap_reg_current |