From: Jean Delvare Date: Fri, 5 Feb 2010 16:48:13 +0000 (+0100) Subject: i2c-tiny-usb: Fix on big-endian systems X-Git-Tag: v2.6.33-rc8~28^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c010ff8912cbc08d80e865aab9c32b6b00c527d;p=pandora-kernel.git 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: Jens Richter Signed-off-by: Jean Delvare Tested-by: Jens Richter Cc: Till Harbaum Cc: stable@kernel.org --- Reading git-diff-tree failed