The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Rhyland Klein <rklein@nvidia.com>
To: cbouatmailru@gmail.com
Cc: bleung@chromium.org, olof@lixom.net,
	linux-kernel@vger.kernel.org, Rhyland Klein <rklein@nvidia.com>
Subject: [PATCH 2/2] power: bq20z75: enable detection after registering
Date: Tue, 24 May 2011 12:06:00 -0700	[thread overview]
Message-ID: <1306263960-1236-2-git-send-email-rklein@nvidia.com> (raw)
In-Reply-To: <1306263960-1236-1-git-send-email-rklein@nvidia.com>

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:
-- 
1.7.5.1


  reply	other threads:[~2011-05-24 19:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-24 19:05 [PATCH 1/2 v2] power: bq20z75: support external notification Rhyland Klein
2011-05-24 19:06 ` Rhyland Klein [this message]
2011-05-24 19:07   ` [PATCH 2/2] power: bq20z75: enable detection after registering Rhyland Klein
2011-05-24 19:18 ` [PATCH 1/2 v2] power: bq20z75: support external notification Anton Vorontsov
  -- strict thread matches above, loose matches on Subject: below --
2011-05-19 23:00 [PATCH 1/2] " Rhyland Klein
2011-05-19 23:00 ` [PATCH 2/2] power: bq20z75: enable detection after registering Rhyland Klein

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=1306263960-1236-2-git-send-email-rklein@nvidia.com \
    --to=rklein@nvidia.com \
    --cc=bleung@chromium.org \
    --cc=cbouatmailru@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olof@lixom.net \
    /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