mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Liam Girdwood <lrg@slimlogic.co.uk>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: linux-kernel@vger.kernel.org, stable@kernel.org
Subject: Re: [PATCH 2.6.33] regulator: Specify REGULATOR_CHANGE_STATUS for WM835x LED constraints
Date: Mon, 04 Jan 2010 17:34:00 +0000	[thread overview]
Message-ID: <1262626440.2968.31.camel@odin> (raw)
In-Reply-To: <1262619054-26795-1-git-send-email-broonie@opensource.wolfsonmicro.com>

On Mon, 2010-01-04 at 15:30 +0000, Mark Brown wrote:
> The WM8350 LED driver needs to be able to enable and disable the
> regulators it is using. Previously the core wasn't properly enforcing
> status change constraints so the driver was able to function but this
> has always been intended to be required.
> 
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> Cc: stable@kernel.org
> ---
>  drivers/regulator/wm8350-regulator.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/regulator/wm8350-regulator.c b/drivers/regulator/wm8350-regulator.c
> index 1bbff09..e7b89e7 100644
> --- a/drivers/regulator/wm8350-regulator.c
> +++ b/drivers/regulator/wm8350-regulator.c
> @@ -1504,7 +1504,8 @@ int wm8350_register_led(struct wm8350 *wm8350, int lednum, int dcdc, int isink,
>  	led->isink_init.consumer_supplies = &led->isink_consumer;
>  	led->isink_init.constraints.min_uA = 0;
>  	led->isink_init.constraints.max_uA = pdata->max_uA;
> -	led->isink_init.constraints.valid_ops_mask = REGULATOR_CHANGE_CURRENT;
> +	led->isink_init.constraints.valid_ops_mask
> +		= REGULATOR_CHANGE_CURRENT | REGULATOR_CHANGE_STATUS;
>  	led->isink_init.constraints.valid_modes_mask = REGULATOR_MODE_NORMAL;
>  	ret = wm8350_register_regulator(wm8350, isink, &led->isink_init);
>  	if (ret != 0) {
> @@ -1517,6 +1518,7 @@ int wm8350_register_led(struct wm8350 *wm8350, int lednum, int dcdc, int isink,
>  	led->dcdc_init.num_consumer_supplies = 1;
>  	led->dcdc_init.consumer_supplies = &led->dcdc_consumer;
>  	led->dcdc_init.constraints.valid_modes_mask = REGULATOR_MODE_NORMAL;
> +	led->dcdc_init.constraints.valid_ops_mask =  REGULATOR_CHANGE_STATUS;
>  	ret = wm8350_register_regulator(wm8350, dcdc, &led->dcdc_init);
>  	if (ret != 0) {
>  		platform_device_put(pdev);

Applied.

Thanks

Liam


      reply	other threads:[~2010-01-04 17:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-04 15:30 Mark Brown
2010-01-04 17:34 ` Liam Girdwood [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=1262626440.2968.31.camel@odin \
    --to=lrg@slimlogic.co.uk \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stable@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome