Skip to content
Commit 1c010ff8 authored by Jean Delvare's avatar Jean Delvare
Browse files

i2c-tiny-usb: Fix on big-endian systems



The functionality bit vector is always returned as a little-endian
32-bit number by the device, so it must be byte-swapped to the host
endianness.

On the other hand, the delay value is handled by the USB stack, so no
byte swapping is needed on our side.

This fixes bug #15105:
http://bugzilla.kernel.org/show_bug.cgi?id=15105

Reported-by: default avatarJens Richter <jens@richter-stutensee.de>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Tested-by: default avatarJens Richter <jens@richter-stutensee.de>
Cc: Till Harbaum <till@harbaum.org>
Cc: stable@kernel.org
parent fc76be43
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