From b29ec0445983a6cc78e015ec3d33c276e0473d28 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 1 Jan 2016 12:17:40 -0600 Subject: [PATCH] Trivial update to C comments --- arch/arm/src/sama5/sam_twi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/sama5/sam_twi.c b/arch/arm/src/sama5/sam_twi.c index ed6bca63e1..bdb3795ed0 100644 --- a/arch/arm/src/sama5/sam_twi.c +++ b/arch/arm/src/sama5/sam_twi.c @@ -1044,7 +1044,7 @@ static int twi_writeread(FAR struct i2c_dev_s *dev, const uint8_t *wbuffer, msgv[0].buffer = (uint8_t *)wbuffer; /* Override const */ msgv[0].length = wbuflen; - /* The second is either a read (rbuflen > 0) or a write (rbuflen < 0) with + /* The second is either a read (rbuflen > 0) or a write (rbuflen <= 0) with * no restart. */ @@ -1066,7 +1066,7 @@ static int twi_writeread(FAR struct i2c_dev_s *dev, const uint8_t *wbuffer, twi_takesem(&priv->exclsem); - /* Initiate the read */ + /* Perform the write-read */ priv->msg = msgv; priv->msgc = 2;