drivers: i2c_mchp_xec: fix incorrect timeout value

Use WAIT_COUNT instead of TIME_OUT.

Signed-off-by: Rajavardhan Gundi <rajavardhan.gundi@intel.com>
This commit is contained in:
Rajavardhan Gundi 2020-12-17 15:25:33 +05:30 committed by Anas Nashif
parent b2b8554da8
commit af2ba71e18
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ static int xec_spin_yield(int *counter)
{
*counter = *counter + 1;
if (*counter > TIMEOUT) {
if (*counter > WAIT_COUNT) {
return -ETIMEDOUT;
}