Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

w1: mxc_w1: Fix mxc_w1_ds2_reset_bus() return value

This patch fix mxc_w1_ds2_reset_bus() return value.
According to i.MX reference manual, "presence status" reflected
in the bit 6 of control register.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alexander Shiyan and committed by
Greg Kroah-Hartman
aea476b5 adffe4ab

+1 -1
+1 -1
drivers/w1/masters/mxc_w1.c
··· 74 74 75 75 udelay(100); 76 76 } 77 - return (reg_val >> 7) & 0x1; 77 + return (reg_val >> 6) & 0x1; 78 78 } 79 79 80 80 /*