Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rhyland Klein and committed by
Anton Vorontsov
ee177d96 58ddafae

+2
+2
drivers/power/bq20z75.c
··· 702 702 703 703 INIT_DELAYED_WORK(&bq20z75_device->work, bq20z75_delayed_work); 704 704 705 + bq20z75_device->enable_detection = true; 706 + 705 707 return 0; 706 708 707 709 exit_psupply: