Commit 651a620
power: supply: bq27xxx: Move time 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 time reading to match.
As time is not checked for changes as part of the update loop, remove
the read of the 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 <afd@ti.com>
Link: https://lore.kernel.org/r/20240325203129.150030-2-afd@ti.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>1 parent c32c617 commit 651a620
2 files changed
Lines changed: 8 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1696 | 1696 | | |
1697 | 1697 | | |
1698 | 1698 | | |
1699 | | - | |
| 1699 | + | |
| 1700 | + | |
1700 | 1701 | | |
1701 | 1702 | | |
1702 | 1703 | | |
| |||
1710 | 1711 | | |
1711 | 1712 | | |
1712 | 1713 | | |
1713 | | - | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
1714 | 1717 | | |
1715 | 1718 | | |
1716 | 1719 | | |
| |||
1857 | 1860 | | |
1858 | 1861 | | |
1859 | 1862 | | |
1860 | | - | |
1861 | | - | |
1862 | | - | |
1863 | | - | |
1864 | | - | |
1865 | | - | |
1866 | | - | |
1867 | 1863 | | |
1868 | 1864 | | |
1869 | 1865 | | |
| |||
2046 | 2042 | | |
2047 | 2043 | | |
2048 | 2044 | | |
2049 | | - | |
| 2045 | + | |
2050 | 2046 | | |
2051 | 2047 | | |
2052 | | - | |
| 2048 | + | |
2053 | 2049 | | |
2054 | 2050 | | |
2055 | | - | |
| 2051 | + | |
2056 | 2052 | | |
2057 | 2053 | | |
2058 | 2054 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 50 | | |
54 | 51 | | |
55 | 52 | | |
| |||
0 commit comments