[PATCH] pxa/magician: bq24022 regulator needs to be enabled
Eric Miao
eric.y.miao at gmail.com
Wed Apr 20 09:48:19 EDT 2011
On Wed, Apr 20, 2011 at 9:41 PM, Philipp Zabel <philipp.zabel at gmail.com> wrote:
> Add REGULATOR_CHANGE_STATUS flag to magician bq24022 regulator to enable charging.
>
> Signed-off-by: Philipp Zabel <philipp.zabel at gmail.com>
Applied to 'fix'. Thanks.
> ---
> arch/arm/mach-pxa/magician.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c
> index a72993d..9984ef7 100644
> --- a/arch/arm/mach-pxa/magician.c
> +++ b/arch/arm/mach-pxa/magician.c
> @@ -599,7 +599,7 @@ static struct regulator_consumer_supply bq24022_consumers[] = {
> static struct regulator_init_data bq24022_init_data = {
> .constraints = {
> .max_uA = 500000,
> - .valid_ops_mask = REGULATOR_CHANGE_CURRENT,
> + .valid_ops_mask = REGULATOR_CHANGE_CURRENT | REGULATOR_CHANGE_STATUS,
> },
> .num_consumer_supplies = ARRAY_SIZE(bq24022_consumers),
> .consumer_supplies = bq24022_consumers,
> --
> 1.7.4.4
>
>
>
More information about the linux-arm-kernel
mailing list