[pkg-fso-commits] [SCM] linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko branch, andy-tracking, updated. upstream/20090303.gitb9de904e-140-g23b564c

Andy Green agreen at octopus.localdomain
Mon Jun 8 17:29:33 UTC 2009


The following commit has been merged in the andy-tracking branch:
commit 8771f76e8249627e82a3530ce3008116619e8284
Author: Matt Hsu <matt_hsu at openmoko.org>
Date:   Tue Mar 10 08:10:07 2009 +0000

    Fix the start condition of comparing setup mode in lp5521 device.
    
    
    Signed-off-by: Matt Hsu <matt_hsu at openmoko.org>

diff --git a/drivers/leds/leds-lp5521.c b/drivers/leds/leds-lp5521.c
index 0415b9e..e5071b1 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)));

-- 
linux-2.6-openmoko, the Linux 2.6 kernel tree from Openmoko



More information about the pkg-fso-commits mailing list