lkml.org 
[lkml]   [2011]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/2] power: bq20z75: enable detection after registering
From
Date
On Tue, 2011-05-24 at 12:06 -0700, Rhyland Klein wrote:
> Need to enable detection, which is also blocking the unit conversion logic
> after registering the power_supply.
>
> Signed-off-by: Rhyland Klein <rklein@nvidia.com>
> ---
> v2: This should have been adding the line, not removing it. Fixed that.
>
> drivers/power/bq20z75.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/power/bq20z75.c b/drivers/power/bq20z75.c
> index e1adc0e..9c5e5be 100644
> --- a/drivers/power/bq20z75.c
> +++ b/drivers/power/bq20z75.c
> @@ -702,6 +702,8 @@ skip_gpio:
>
> INIT_DELAYED_WORK(&bq20z75_device->work, bq20z75_delayed_work);
>
> + bq20z75_device->enable_detection = true;
> +
> return 0;
>
> exit_psupply:

ignore this patch, sent updated patch with proper version tag in
subject.

-rhyland




\
 
 \ /
  Last update: 2011-05-24 21:11    [W:0.047 / U:1.820 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site