]> git.baikalelectronics.ru Git - kernel.git/commit
w1: fix slave selection on big-endian systems
authorEvgeniy Polyakov <johnpol@2ka.mipt.ru>
Tue, 23 Dec 2008 21:57:12 +0000 (13:57 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 23 Dec 2008 23:58:21 +0000 (15:58 -0800)
commitfe5948d4d221294f134501655af667f172c59f65
tree36578b6efa3dafa6487a513fb7b6b00071a1bb62
parent7bb501b39adf34409d72706b940cdf9162b79b93
w1: fix slave selection on big-endian systems

During test of the w1-gpio driver i found that in "w1.c:679
w1_slave_found()" the device id is converted to little-endian with
"cpu_to_le64()", but its not converted back to cpu format in "w1_io.c:293
w1_reset_select_slave()".

Based on a patch created by Andreas Hummel.

[akpm@linux-foundation.org: remove unneeded cast]
Reported-by: Andreas Hummel <andi_hummel@gmx.de>
Signed-off-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/w1/w1_io.c