aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorGrazvydas Ignotas <[email protected]>2012-01-14 22:50:49 +0200
committerAnton Vorontsov <[email protected]>2012-02-01 21:27:28 +0400
commit4d4036591b3de279a8c93a3cb010b0bc1264703c (patch)
tree2ae895a48407219e41332f93bf8e5949ce9440c9 /tools/perf/util/scripting-engines/trace-event-python.c
parentb7aaacf56ac9e0cdb58c3d087fea7084d897c307 (diff)
bq27x00_battery: Fix flag register read
When reading flags, bq27x00_read() argument is inverted and causes reads 2 of bytes for bq27200 and 1 byte for bq27500, while their register sizes are 1 and 2 bytes respectively. This causes bq27500 upper flag bits always to be returned as 0, causing full charge state to never be reported correctly, so fix it. Cc: Lars-Peter Clausen <[email protected]> Signed-off-by: Grazvydas Ignotas <[email protected]> Acked-by: Pali Rohár <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions