]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/w1/masters/w1-gpio.c: fix read_bit()
authorDaniel Mack <daniel@caiaq.de>
Thu, 12 Mar 2009 21:31:25 +0000 (14:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Mar 2009 23:20:23 +0000 (16:20 -0700)
commit861c4e51daf3d65d9d3d22bb1ec92c284336930f
treea9d9834c949da6e6572cc5d897560d2ded1adcfe
parent37d51a33d486ac9aa01a0fdbd8fc2be048c226d0
drivers/w1/masters/w1-gpio.c: fix read_bit()

W1 master implementations are expected to return 0 or 1 from their
read_bit() function.  However, not all platforms do return these values
from gpio_get_value() - namely PXAs won't.  Hence the w1 gpio-master needs
to break the result down to 0 or 1 itself.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Ville Syrjala <syrjala@sci.fi>
Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/w1/masters/w1-gpio.c