Commit bde83b9
bq27x00_battery: Fix bugs introduced with BQ27425 support
commit a66f59b
bq27x00_battery: Add support for BQ27425 chip
introduced 2 bugs.
1/ 'chip' was set to BQ27425 unconditionally - breaking support for
other devices;
2/ BQ27425 does not support cycle count, how the code still tries to
get the cycle count for BQ27425, and now does it twice for other chips.
Signed-off-by: NeilBrown <[email protected]>
Cc: Saranya Gopal <[email protected]>
Cc: [email protected]
Signed-off-by: Anton Vorontsov <[email protected]>1 parent a05be99 commit bde83b9
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
452 | 451 | | |
453 | 452 | | |
454 | 453 | | |
| |||
696 | 695 | | |
697 | 696 | | |
698 | 697 | | |
699 | | - | |
700 | 698 | | |
701 | 699 | | |
702 | 700 | | |
| |||
0 commit comments