Skip to content

Commit

Permalink
bq20z75: Enable detection after registering
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rhyland Klein authored and Anton Vorontsov committed Jul 8, 2011
1 parent 58ddafa commit ee177d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/power/bq20z75.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,8 @@ static int __devinit bq20z75_probe(struct i2c_client *client,

INIT_DELAYED_WORK(&bq20z75_device->work, bq20z75_delayed_work);

bq20z75_device->enable_detection = true;

return 0;

exit_psupply:
Expand Down

0 comments on commit ee177d9

Please sign in to comment.