Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function missing FAR information #1911

Merged
merged 1 commit into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading