[PATCH] w1: fix CRC calculation on bigendian platforms.
authorEvgeniy Polyakov <johnpol@2ka.mipt.ru>
Thu, 30 Jun 2005 18:52:38 +0000 (22:52 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 11 Jul 2005 21:10:37 +0000 (14:10 -0700)
commit0e65f82814e9828d3ff54988de9e7c0b36794daa
treea4d5dfb9ab550160a453c6266fe67d18ace76857
parent80efa8c72006a1c04004f8fb07b22073348e4bf2
[PATCH] w1: fix CRC calculation on bigendian platforms.

In the 2.6.13-rc1 code the "rn" structure is in the wrong-endianness
when passed to w1_attach_slave_device(). This causes problems like the
family and crc being swapped around.

Signed-off-by: Roger Blofeld <blofeldus@yahoo.com>
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/w1/w1.c