diff options
author | Daniel Mack <[email protected]> | 2009-03-12 14:31:25 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-03-12 16:20:23 -0700 |
commit | 8d0df7a3d1ecbaf5d5602a59055c8ca993855bed (patch) | |
tree | a9d9834c949da6e6572cc5d897560d2ded1adcfe /lib/string_helpers.c | |
parent | 00699e8472cc0209d57b5c5614bc2ec98e665004 (diff) |
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 <[email protected]>
Cc: Ville Syrjala <[email protected]>
Cc: Evgeniy Polyakov <[email protected]>
Cc: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions