Skip to contentSkip to conversation

power: bq20z75: enable detection after registering

PATCH In review Rhyland Klein 1 participant 1 message May 24, 2011

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/2 power: bq20z75: enable detection after registering

Need to enable detection, which is also blocking the unit conversion logic after registering the power_supply.

---
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(-)
drivers/power/bq20z75.c +2 -0
index e1adc0e..9c5e5be 100644
@@ -702,6 +702,8 @@ skip_gpio:
 
 	INIT_DELAYED_WORK(&bq20z75_device->work, bq20z75_delayed_work);
 
+	bq20z75_device->enable_detection = true;
+
 	return 0;
 
 exit_psupply:
Signature · 1 line
1.7.5.1