staging/dt3155: fix build error caused by removing TRUE / FALSE defines
PATCH 1/1 staging/dt3155: fix build error caused by removing TRUE / FALSE defines
TRUE and FALSE are also used in the wait_ibsyclr function. This will cause a build error due to the patch that removes those defines. Fix this by returning proper error codes.
Signed-off-by H Hartley Sweeten <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Scott Smedley <[email protected]>
---
drivers/staging/dt3155/dt3155_io.c +2 -2
@@ -88,9 +88,9 @@ static int wait_ibsyclr(u8 *lpReg)/* if NEW_CYCLE didn't clear */ /* TIMEOUT ERROR */ dt3155_errno =DT_ERR_I2C_TIMEOUT ; -return FALSE; +return -ETIMEDOUT ; }else -return TRUE;/* no error */ +return 0 ; }/*