Skip to content

Commit

Permalink
w1: mxc_w1: Fix incorrect "presence" status
Browse files Browse the repository at this point in the history
W1 reset_bus() should return zero if slave device is present.
This patch fix this issue.

Signed-off-by: Alexander Shiyan <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
shcgit authored and gregkh committed Jun 20, 2014
1 parent b29f680 commit 37014f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/w1/masters/mxc_w1.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static u8 mxc_w1_ds2_reset_bus(void *data)

udelay(100);
}
return !!(reg_val & MXC_W1_CONTROL_PST);
return !(reg_val & MXC_W1_CONTROL_PST);
}

/*
Expand Down

0 comments on commit 37014f5

Please sign in to comment.