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:
parent
b2b8554da8
commit
af2ba71e18
|
@ -124,7 +124,7 @@ static int xec_spin_yield(int *counter)
|
|||
{
|
||||
*counter = *counter + 1;
|
||||
|
||||
if (*counter > TIMEOUT) {
|
||||
if (*counter > WAIT_COUNT) {
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue