leds: cpcap: HACK: turn off led for brightness of 0 and 1.
authormakarand.karvekar <makarand.karvekar@motorola.com>
Mon, 8 Nov 2010 23:11:03 +0000 (17:11 -0600)
committerColin Cross <ccross@android.com>
Mon, 29 Nov 2010 22:44:30 +0000 (14:44 -0800)
commitd791b66f35e963d6b50d9f6809198d94ddd5bb1c
tree70d7a4975f7aa3dd9028b6b6ff20c85a8958d635
parentf050e0c72bfdb2c9f2501440e4aada3fbc228ea0
leds: cpcap: HACK: turn off led for brightness of 0 and 1.

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>
drivers/leds/leds-ld-cpcap.c