mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2/2 v2] power: bq20z75: enable detection after registering
@ 2011-05-24 19:06 Rhyland Klein
  0 siblings, 0 replies; only message in thread
From: Rhyland Klein @ 2011-05-24 19:06 UTC (permalink / raw)
  To: cbouatmailru; +Cc: bleung, olof, linux-kernel, Rhyland Klein

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-24 19:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-24 19:06 [PATCH 2/2 v2] power: bq20z75: enable detection after registering Rhyland Klein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®