Commit 656489a
power: supply: bq27xxx: Move cycle count reading out of update loop
Most of the functions that read values return a status and put the value
itself in an a function parameter. Update cycle count reading to match.
As cycle count is not checked for changes as part of the update loop,
remove the read of this from the periodic update loop. This saves I2C/1W
bandwidth. It also means we do not have to cache it, fresh values are
read when requested.
Signed-off-by: Andrew Davis <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sebastian Reichel <[email protected]>1 parent 39cf1c4 commit 656489a
File tree
2 files changed
+6
-6
lines changed- drivers/power/supply
- include/linux/power
2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1690 | 1690 | | |
1691 | 1691 | | |
1692 | 1692 | | |
1693 | | - | |
| 1693 | + | |
| 1694 | + | |
1694 | 1695 | | |
1695 | 1696 | | |
1696 | 1697 | | |
1697 | 1698 | | |
1698 | 1699 | | |
1699 | 1700 | | |
1700 | 1701 | | |
1701 | | - | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
1702 | 1705 | | |
1703 | 1706 | | |
1704 | 1707 | | |
| |||
1872 | 1875 | | |
1873 | 1876 | | |
1874 | 1877 | | |
1875 | | - | |
1876 | | - | |
1877 | 1878 | | |
1878 | 1879 | | |
1879 | 1880 | | |
| |||
2082 | 2083 | | |
2083 | 2084 | | |
2084 | 2085 | | |
2085 | | - | |
| 2086 | + | |
2086 | 2087 | | |
2087 | 2088 | | |
2088 | 2089 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
0 commit comments