summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <[email protected]>2013-12-30 11:24:32 +0100
committerTom Rini <[email protected]>2014-01-14 09:01:05 -0500
commitc9b0fa310ccc735f11afe52d3b14021c607931e4 (patch)
treec87e7e32bf769af2eae9be7a0ebdd6830172f1d2 /include/linux
parent68b15e831c9a0a2da276b0c6f67569af997ad099 (diff)
fuelgauge: max17042: fix i2c read issue which causes infinity loop.
Issues: - reading i2c data by passing u16 pointer causes errors in read data. - max17042 status register fields have not only Power On Reset meaning so using proper mask is required. Changes: - read i2c data to type u32 instead of u16 - avoids buffer overflow - compare FG status register using mask not just one bit value - add checking return value to functions fg read/write - add model lock and model check count - add debug msg Signed-off-by: Przemyslaw Marczak <[email protected]> Cc: Lukasz Majewski <[email protected]> Cc: Minkyu Kang <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions