summaryrefslogtreecommitdiff
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorIrina Tirdea <irina.tirdea@intel.com>2015-04-13 15:40:48 (GMT)
committerJonathan Cameron <jic23@kernel.org>2015-04-26 18:39:42 (GMT)
commitcd62322a9767f9a0bcf855123c478187e38a10f4 (patch)
tree436f350ed4fa9d57fa42a1320234b0c47875058b /drivers/bluetooth
parent8e71c04f863a1754f21b27fb8ecb773d680a0a80 (diff)
downloadlinux-cd62322a9767f9a0bcf855123c478187e38a10f4.tar.xz
iio: accel: mma9553: fix endianness issue when reading status
Refactor code for simplicity and clarity. This also fixes an endianness issue with the original code. When reading multiple registers, the received buffer of 16-bytes words is little endian (status, step count). On big endian machines, casting them to u32 would result in reversed order in the buffer (step count, status) leading to incorrect values for step count and activity. Signed-off-by: Irina Tirdea <irina.tirdea@intel.com> Reported-by: Hartmut Knaack <knaack.h@gmx.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/bluetooth')
0 files changed, 0 insertions, 0 deletions