Explorar o código

bq20z75: Enable detection after registering

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>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Rhyland Klein %!s(int64=14) %!d(string=hai) anos
pai
achega
ee177d96e0
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      drivers/power/bq20z75.c

+ 2 - 0
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: