aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2018-03-08 21:57:05 -0700
committerNathan Chancellor <natechancellor@gmail.com>2018-03-10 16:00:51 -0700
commit615834467682e211d6a06d192a7df7ec18bb2c87 (patch)
treeae82a35bf16c3b80f74e11353b238a3cd2654aa3 /scripts/gdb/linux/utils.py
parent55ec27acada7f306914ccea467a341fa7665d806 (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