[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1226936707-24875-1-git-send-email-broonie@opensource.wolfsonmicro.com>
Date: Mon, 17 Nov 2008 15:45:07 +0000
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Richard Purdie <rpurdie@...ux.intel.com>
Cc: Frederik Deweerdt <frederik.deweerdt@...og.eu>,
linux-kernel@...r.kernel.org,
Mark Brown <broonie@...nsource.wolfsonmicro.com>
Subject: [PATCH] leds: Handle maximum current setting over maximum supported for WM8350
Signed-off-by: Mark Brown <broonie@...nsource.wolfsonmicro.com>
---
drivers/leds/leds-wm8350.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/leds/leds-wm8350.c b/drivers/leds/leds-wm8350.c
index e6d1fb9..e38756d 100644
--- a/drivers/leds/leds-wm8350.c
+++ b/drivers/leds/leds-wm8350.c
@@ -262,7 +262,7 @@ static int wm8350_led_probe(struct platform_device *pdev)
led->isink = isink;
led->dcdc = dcdc;
- for (i = 0; i < ARRAY_SIZE(isink_cur); i++)
+ for (i = 0; i < ARRAY_SIZE(isink_cur) - 1; i++)
if (isink_cur[i] >= pdata->max_uA)
break;
led->max_uA_index = i;
--
1.5.6.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists