mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
nuttx: fix multiple 'FAR', 'CODE' and style issues
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
committed by
Xiang Xiao
parent
5d17e4795a
commit
d499ac9d58
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user