summaryrefslogtreecommitdiff
path: root/fs/romfs
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2017-12-26 15:59:12 +0300
committerSebastian Reichel <sre@kernel.org>2018-01-09 19:45:08 +0300
commitceb40831c94115134581ee6eaaa26001e00def5f (patch)
treebdf2b7a99ef32c7d3cbd0393b2afad703f6b55cf /fs/romfs
parent2b5a4b4bf2224f4f6b6631091bd51cb08d3094be (diff)
downloadlinux-ceb40831c94115134581ee6eaaa26001e00def5f.tar.xz
power: supply: axp288_fuel_gauge: Optimize get_current()
First check the discharge current, and when that is non 0 use that without also checking the charge current (which will be 0 then). This makes get_current() do only 1 i2c read instead of 2 when on battery. This is esp. important given the pmic i2c bus mutex stuff used on boards with an axp288 because the SoC's own punit also may access the axp288, which makes i2c accesses more expensive then normal. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'fs/romfs')
0 files changed, 0 insertions, 0 deletions