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
+2 -2
View File
@@ -75,7 +75,7 @@ struct hcsr04_dev_s
int time_start_pulse;
int time_finish_pulse;
volatile bool rising;
struct pollfd *fds[CONFIG_HCSR04_NPOLLWAITERS];
FAR struct pollfd *fds[CONFIG_HCSR04_NPOLLWAITERS];
};
/****************************************************************************
@@ -341,7 +341,7 @@ static int hcsr04_poll(FAR struct file *filep, FAR struct pollfd *fds,
{
/* This is a request to tear down the poll. */
struct pollfd **slot = (struct pollfd **)fds->priv;
FAR struct pollfd **slot = (FAR struct pollfd **)fds->priv;
DEBUGASSERT(slot != NULL);
/* Remove all memory of the poll setup */