Skip to content

Commit

Permalink
Add function missing FAR information
Browse files Browse the repository at this point in the history
Signed-off-by: fengxuesong <[email protected]>
  • Loading branch information
fengxuesong authored and xiaoxiang781216 committed Aug 9, 2023
1 parent 6fecb56 commit 2909e8d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions system/i2c/i2c_hexdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
* Name: hexdump_line
****************************************************************************/

static int hexdump_line(FILE *ostream, void *addr, int len)
static int hexdump_line(FAR FILE *ostream, FAR void *addr, int len)
{
int i;
uint8_t *p;
FAR uint8_t *p;

if (len <= 0)
{
Expand Down Expand Up @@ -100,10 +100,10 @@ static int hexdump_line(FILE *ostream, void *addr, int len)
* Public Functions
****************************************************************************/

void i2ctool_hexdump(FILE *outstream, void *addr, int len)
void i2ctool_hexdump(FAR FILE *outstream, FAR void *addr, int len)
{
int nbytes;
uint8_t *p = addr;
FAR uint8_t *p = addr;

/* print one line at a time */

Expand Down
5 changes: 3 additions & 2 deletions system/i2c/i2c_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static int i2c_execute(FAR struct i2ctool_s *i2ctool, int argc,
****************************************************************************/

static FAR char *i2c_argument(FAR struct i2ctool_s *i2ctool,
int argc, char *argv[], int *pindex)
int argc, FAR char *argv[], FAR int *pindex)
{
FAR char *arg;
int index = *pindex;
Expand Down Expand Up @@ -266,7 +266,8 @@ static FAR char *i2c_argument(FAR struct i2ctool_s *i2ctool,
* Name: i2c_parse
****************************************************************************/

static int i2c_parse(FAR struct i2ctool_s *i2ctool, int argc, char *argv[])
static int i2c_parse(FAR struct i2ctool_s *i2ctool,
int argc, FAR char *argv[])
{
FAR char *newargs[MAX_ARGUMENTS + 2];
FAR char *cmd;
Expand Down
2 changes: 1 addition & 1 deletion system/i2c/i2c_reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* Name: i2ccmd_reset
****************************************************************************/

int i2ccmd_reset(FAR struct i2ctool_s *i2ctool, int argc, char **argv)
int i2ccmd_reset(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv)
{
int ret;
int fd;
Expand Down

0 comments on commit 2909e8d

Please sign in to comment.