Revert "leds: cpcap: HACK: turn off led for brightness of 0 and 1."
authorColin Cross <ccross@android.com>
Thu, 2 Dec 2010 02:34:00 +0000 (18:34 -0800)
committerColin 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

index df0e697de019ac76d451e0ecd302afb1df25d268..0c114f18c60831f98f4a06bfa994f6668be7c267 100755 (executable)
@@ -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 |