brightness 0 triggers delay_on and delay_off device file
removal. setting timer trigger creates new device files
with root permissions. Avoid device file removal by treating
brightness 1 as 0.
Change-Id: Idfc2dd1c43e5962c173f8ed69f61e4b207c80cbb
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
brightness = cpcap_led_data->brightness;
- if (brightness > 0) {
+ if (brightness > 1) {
brightness = (cpcap_led_data->pdata->cpcap_reg_period |
cpcap_led_data->pdata->cpcap_reg_duty_cycle |
cpcap_led_data->pdata->cpcap_reg_current |