diff options
author | Matt Hsu <matt_hsu@openmoko.org> | 2009-03-10 08:10:07 +0000 |
---|---|---|
committer | Andy Green <agreen@octopus.localdomain> | 2009-03-10 08:10:07 +0000 |
commit | 8771f76e8249627e82a3530ce3008116619e8284 (patch) | |
tree | f211012fd776b89642de1f7dc2cc23a646e65ad4 /drivers/leds | |
parent | 5457a45a5d4ca2c39b1f17625156110cdc66d16e (diff) |
Fix the start condition of comparing setup mode in lp5521 device.
Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/leds-lp5521.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-lp5521.c b/drivers/leds/leds-lp5521.c index 0415b9e6d77..e5071b185fd 100644 --- a/drivers/leds/leds-lp5521.c +++ b/drivers/leds/leds-lp5521.c @@ -144,7 +144,7 @@ static ssize_t set_mode(struct device *dev, struct device_attribute *attr, mask = (0x3 << (id * 2)); - for (i = LP5521_REG_OP_MODE; i <= LP5521_MODE_DIRECT; i++) { + for (i = LP5521_MODE_DISABLE; i <= LP5521_MODE_DIRECT; i++) { if (!strncmp(buf, lp5521_ch_mode[i], strlen(lp5521_ch_mode[i]))) { reg_set_bit_mask(lp, LP5521_REG_OP_MODE, mask, (i << (id * 2))); |