All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Richard Purdie <rpurdie@linux.intel.com>
Cc: Frederik Deweerdt <frederik.deweerdt@xprog.eu>,
	linux-kernel@vger.kernel.org,
	Mark Brown <broonie@opensource.wolfsonmicro.com>
Subject: [PATCH] leds: Handle maximum current setting over maximum supported for WM8350
Date: Mon, 17 Nov 2008 15:45:07 +0000	[thread overview]
Message-ID: <1226936707-24875-1-git-send-email-broonie@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <20081117152506.GA29949@gambetta>

Signed-off-by: Mark Brown <broonie@opensource.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


      parent reply	other threads:[~2008-11-17 15:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-17 14:52 [PATCH] leds: Add WM8350 LED driver Mark Brown
2008-11-17 15:25 ` Frederik Deweerdt
2008-11-17 15:29   ` Mark Brown
2008-11-17 15:45   ` Mark Brown [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1226936707-24875-1-git-send-email-broonie@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=frederik.deweerdt@xprog.eu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rpurdie@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.