Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37014f5b authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Greg Kroah-Hartman
Browse files

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: default avatarAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b29f680c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}

/*