W1: recode w1_slave_found logic
authorDavid Fries <david@fries.net>
Thu, 16 Oct 2008 05:04:44 +0000 (22:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:49 +0000 (11:21 -0700)
commitcd7b28d33d0cabdc86fa7d546da07b9385274bbb
treeef8afe60407d37a8ecb0f5ee9efacbbd91616229
parent9b46741119590bf23c5c519b49024eb2001cfafa
W1: recode w1_slave_found logic

Simplified the logic in w1_slave_found by using the new
w1_attach_slave_device function to find a slave and mark it as active or
add the device if the crc checks.

Signed-off-by: David Fries <david@fries.net>
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/w1/w1.c