Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee177d96 authored by Rhyland Klein's avatar Rhyland Klein Committed by Anton Vorontsov
Browse files

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: default avatarRhyland Klein <rklein@nvidia.com>
Signed-off-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
parent 58ddafae
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -702,6 +702,8 @@ static int __devinit bq20z75_probe(struct i2c_client *client,


	INIT_DELAYED_WORK(&bq20z75_device->work, bq20z75_delayed_work);
	INIT_DELAYED_WORK(&bq20z75_device->work, bq20z75_delayed_work);


	bq20z75_device->enable_detection = true;

	return 0;
	return 0;


exit_psupply:
exit_psupply: