From 0cf66149ed2dde96c854ac771089f9e225b00fdd Mon Sep 17 00:00:00 2001 From: Bernd Walter Date: Sat, 14 Nov 2020 16:19:47 +0100 Subject: [PATCH] twi_takesem() had been changed to return an int. Neither the prototype, nor the description had been adapted, resulting in compiler errors. Fix both points. --- arch/arm/src/sam34/sam_twi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/sam34/sam_twi.c b/arch/arm/src/sam34/sam_twi.c index f54da620b4c..5c3bfe497fa 100644 --- a/arch/arm/src/sam34/sam_twi.c +++ b/arch/arm/src/sam34/sam_twi.c @@ -141,7 +141,7 @@ struct twi_dev_s /* Low-level helper functions */ -static void twi_takesem(sem_t *sem); +static int twi_takesem(sem_t *sem); #define twi_givesem(sem) (nxsem_post(sem)) #ifdef CONFIG_SAM34_TWI_REGDEBUG @@ -220,7 +220,8 @@ static const struct i2c_ops_s g_twiops = * dev - Instance of the SDIO device driver state structure. * * Returned Value: - * None + * EINVAL - Invalid attempt to get the semaphore + * EINTR - The wait was interrupted by the receipt of a signal. * ****************************************************************************/