drivers: fix timeout in hp206

It receives a timeout in ms, but was still converting it to ticks, while
the unified kernel API takes a value in ms.

Change-Id: I8ff7f44090716385764fe4b2a087043a2e0d70af
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2016-12-20 15:41:26 -05:00 committed by Anas Nashif
commit e863a77849

View file

@ -181,7 +181,7 @@ static int hp206c_wait_dev_ready(struct device *dev, uint32_t timeout_ms)
uint8_t int_src;
#ifdef CONFIG_NANO_TIMERS
k_timer_start(&hp206c->tmr, MSEC(timeout_ms), 0);
k_timer_start(&hp206c->tmr, timeout_ms, 0);
k_timer_status_sync(&hp206c->tmr);
#else
k_busy_wait(timeout_ms * 1000);