nuttx: fix multiple 'FAR', 'CODE' and style issues

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko
2024-08-24 19:21:12 -04:00
committed by Xiang Xiao
parent 5d17e4795a
commit d499ac9d58
275 changed files with 2130 additions and 1986 deletions
+1 -1
View File
@@ -236,7 +236,7 @@ static int ads7828_readchannel(FAR struct ads7828_dev_s *priv,
i2cmsg[1].flags = I2C_M_READ;
uint16_t buf;
i2cmsg[1].buffer = (uint8_t *)(&buf);
i2cmsg[1].buffer = (FAR uint8_t *)(&buf);
i2cmsg[1].length = sizeof(buf);
ret = I2C_TRANSFER(priv->i2c, i2cmsg, 2);
if (ret < 0)