diff options
| author | Nathan Chancellor <natechancellor@gmail.com> | 2018-03-08 21:57:05 -0700 |
|---|---|---|
| committer | Nathan Chancellor <natechancellor@gmail.com> | 2018-03-10 16:00:51 -0700 |
| commit | 615834467682e211d6a06d192a7df7ec18bb2c87 (patch) | |
| tree | ae82a35bf16c3b80f74e11353b238a3cd2654aa3 /scripts/gdb/linux/utils.py | |
| parent | 55ec27acada7f306914ccea467a341fa7665d806 (diff) | |
lge_battery: Defer probe if battery ID is zero
A battery ID is only going to be zero if the resistance is
returned as zero by fg_get_battery_resistance, which appears
to only happen when the battery ID hasn't been loaded, according
to logging on boot.
This avoids the -EINVAL return trigger below since commit
0277be04135e ("qpnp-fg-gen3: Move getting battery id and
profile to profile_load_work") delays the battery ID getting
loaded.
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions
