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

w1: mxc_w1: Fix incorrect "presence" status

W1 reset_bus() should return zero if slave device is present.
This patch fix this issue.

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
37014f5b b29f680c

+1 -1
+1 -1
drivers/w1/masters/mxc_w1.c
··· 66 66 67 67 udelay(100); 68 68 } 69 - return !!(reg_val & MXC_W1_CONTROL_PST); 69 + return !(reg_val & MXC_W1_CONTROL_PST); 70 70 } 71 71 72 72 /*