power:bq27xxx: 27000/10 read FLAGS register as single
authorH. Nikolaus Schaller <hns@goldelico.com>
Mon, 18 Jul 2016 16:12:09 +0000 (18:12 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 15 Aug 2016 19:26:52 +0000 (21:26 +0200)
commite4a404a081df1abe95a06ab24b7c76d8cf02402f
tree9d1899a275dc5d66b76b7846a77e4ed5ca9f0b71
parent47d7d5ed68d877269003a392b7008905d65650bb
power:bq27xxx: 27000/10 read FLAGS register as single

The bq27000 and bq27010 have a single byte FLAGS register.
Other gauges have 16 bit FLAGS registers.

For reading the FLAGS register it is sufficient to read the single
register instead of reading RSOC at the next higher address as
well and then ignore the high byte.

This does not change functionality but optimizes i2c and hdq
traffic.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Acked-by: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/bq27xxx_battery.c
This page took 0.027846 seconds and 5 git commands to generate.