Skip to content
Commit 97f70c23 authored by Grazvydas Ignotas's avatar Grazvydas Ignotas Committed by Anton Vorontsov
Browse files

power_supply: bq27x00: remove double endian swap



The bq27x00 registers are little endian, so just read them as such
and don't do double endian swap on LE machines.

This also gets rid of strange looking shift that was done after
reading 8bit register because endian swap in bq27x00_read() was
messing it up.

Signed-off-by: default avatarGrazvydas Ignotas <notasas@gmail.com>
Acked-by: default avatarRodolfo Giometti <giometti@linux.it>
Signed-off-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
parent 5324dc0e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment