Jean Delvare
1c010ff891
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 <jens@richter-stutensee.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Jens Richter <jens@richter-stutensee.de>
Cc: Till Harbaum <till@harbaum.org>
Cc: stable@kernel.org
2010-02-05 17:48:13 +01:00
..
2009-03-25 10:21:35 +00:00
2009-12-06 17:06:23 +01:00
2009-12-06 17:06:23 +01:00
2010-01-16 20:43:13 +01:00
2009-01-07 14:29:18 +01:00
2009-10-04 22:53:45 +02:00
2009-10-04 22:53:45 +02:00
2009-06-16 22:42:16 +01:00
2009-06-16 22:42:16 +01:00
2009-12-24 01:24:48 +00:00
2009-06-22 01:43:32 +01:00
2009-07-15 00:03:56 +01:00
2009-12-09 00:19:13 +00:00
2009-01-26 21:19:52 +01:00
2008-07-28 12:40:44 +01:00
2009-06-16 22:42:16 +01:00
2009-01-26 21:19:52 +01:00
2009-12-06 17:06:27 +01:00
2009-07-08 10:30:03 -07:00
2008-01-27 18:14:45 +01:00
2010-01-24 15:25:57 +00:00
2009-12-06 17:06:22 +01:00
2006-07-12 15:43:06 -07:00
2009-10-04 22:53:45 +02:00
2009-02-24 19:19:49 +01:00
2009-11-02 23:28:47 +00:00
2009-12-06 17:06:22 +01:00
2008-08-10 22:56:15 +02:00
2009-05-05 08:39:24 +02:00
2009-06-16 22:42:16 +01:00
2009-12-24 01:30:54 +00:00
2009-01-26 21:19:52 +01:00
2009-01-26 21:19:52 +01:00
2007-02-13 22:09:02 +01:00
2008-07-14 22:38:29 +02:00
2010-01-16 20:43:13 +01:00
2010-01-16 20:43:13 +01:00
2010-01-16 20:43:12 +01:00
2009-06-16 22:42:16 +01:00
2009-12-09 00:19:13 +00:00
2009-12-06 17:06:22 +01:00
2009-12-15 08:53:25 -08:00
2009-12-15 08:53:25 -08:00
2009-04-07 10:23:34 +01:00
2009-04-07 10:23:34 +01:00
2009-11-24 21:31:10 -05:00
2009-05-13 16:59:40 +09:00
2009-12-15 08:53:25 -08:00
2009-01-26 21:19:52 +01:00
2009-07-15 00:03:56 +01:00
2009-10-04 22:53:45 +02:00
2009-12-06 17:06:23 +01:00
2009-12-06 17:06:23 +01:00
2009-08-20 22:27:58 +01:00
2009-12-06 17:06:29 +01:00
2009-09-18 22:45:43 +02:00
2010-02-05 17:48:13 +01:00
2009-06-16 22:42:16 +01:00
2009-01-26 21:19:52 +01:00
2010-01-16 20:43:12 +01:00
2009-12-06 17:06:21 +01:00
2009-12-06 17:06:21 +01:00
2009-09-18 22:45:47 +02:00
2009-02-24 19:19:49 +01:00