From c966075f46d8f54c3a799cd74bc4f3ec46fe553a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= Date: Tue, 19 Sep 2017 15:19:54 +0200 Subject: Use stopwatch_wait_until_expired where applicable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I4d6c6810b91294a7e401a4a1a446218c04c98e55 Signed-off-by: Jonathan Neuschäfer Reviewed-on: https://review.coreboot.org/21590 Tested-by: build bot (Jenkins) Reviewed-by: Mario Scheithauer --- src/drivers/i2c/rx6110sa/rx6110sa.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/drivers/i2c/rx6110sa/rx6110sa.c') diff --git a/src/drivers/i2c/rx6110sa/rx6110sa.c b/src/drivers/i2c/rx6110sa/rx6110sa.c index aad109781d..69ea9fec0f 100644 --- a/src/drivers/i2c/rx6110sa/rx6110sa.c +++ b/src/drivers/i2c/rx6110sa/rx6110sa.c @@ -149,8 +149,7 @@ static void rx6110sa_init(struct device *dev) * Take the needed delay after a reset sequence into account before the * VLF-bit can be cleared. */ - while (!stopwatch_expired(&sw)) - ; + stopwatch_wait_until_expired(&sw); flags &= ~VLF_BIT; rx6110sa_write(dev, FLAG_REGISTER, flags); -- cgit v1.2.3