Skip to content

Commit 37014f5

Browse files
shcgitgregkh
authored andcommitted
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>
1 parent b29f680 commit 37014f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/w1/masters/mxc_w1.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static u8 mxc_w1_ds2_reset_bus(void *data)
6666

6767
udelay(100);
6868
}
69-
return !!(reg_val & MXC_W1_CONTROL_PST);
69+
return !(reg_val & MXC_W1_CONTROL_PST);
7070
}
7171

7272
/*

0 commit comments

Comments
 (0)