nuttx: fix nxstyle issues

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2023-09-15 22:10:07 +03:00 committed by Xiang Xiao
parent e77ec6c8c6
commit dbc37a0165
7 changed files with 16 additions and 16 deletions

View File

@ -118,13 +118,13 @@ static int sam_start(struct watchdog_lowerhalf_s *lower);
static int sam_stop(struct watchdog_lowerhalf_s *lower);
static int sam_keepalive(struct watchdog_lowerhalf_s *lower);
static int sam_getstatus(struct watchdog_lowerhalf_s *lower,
struct watchdog_status_s *status);
struct watchdog_status_s *status);
static int sam_settimeout(struct watchdog_lowerhalf_s *lower,
uint32_t timeout);
uint32_t timeout);
static xcpt_t sam_capture(struct watchdog_lowerhalf_s *lower,
xcpt_t handler);
xcpt_t handler);
static int sam_ioctl(struct watchdog_lowerhalf_s *lower, int cmd,
unsigned long arg);
unsigned long arg);
/****************************************************************************
* Private Data
@ -336,7 +336,7 @@ static int sam_stop(struct watchdog_lowerhalf_s *lower)
* Description:
* Reset the watchdog timer to the current timeout value, prevent any
* imminent watchdog timeouts. This is sometimes referred as "pinging"
* the atchdog timer or "petting the dog".
* the watchdog timer or "petting the dog".
*
* Input Parameters:
* lower - A pointer the publicly visible representation of the

View File

@ -326,7 +326,7 @@ static void mpfs_modifyreg16(uintptr_t addr, uint16_t clearbits,
****************************************************************************/
static void mpfs_modifyreg8(uintptr_t addr, uint8_t clearbits,
uint8_t setbits)
uint8_t setbits)
{
irqstate_t flags;
uint8_t regval;

View File

@ -1393,7 +1393,7 @@ static int esp32_interrupt(int cpuint, void *context, void *arg)
if ((enabled & UART_TX_BRK_IDLE_DONE_INT_ENA) != 0 &&
(status & UART_TX_DONE_INT_ST) != 0)
{
/* If al bytes were transmited, then we can disable the RS485
/* If all bytes were transmitted, then we can disable the RS485
* transmit (TX/nTX) pin.
*/
@ -1412,7 +1412,7 @@ static int esp32_interrupt(int cpuint, void *context, void *arg)
*/
if ((enabled & (UART_RXFIFO_FULL_INT_ENA |
UART_RXFIFO_TOUT_INT_ENA)) != 0)
UART_RXFIFO_TOUT_INT_ENA)) != 0)
{
/* Is there any data waiting in the Rx FIFO? */

View File

@ -464,7 +464,7 @@ static int can_close(FAR struct file *filep)
while (dev->cd_xmit.tx_head != dev->cd_xmit.tx_tail)
{
nxsig_usleep(HALF_SECOND_USEC);
nxsig_usleep(HALF_SECOND_USEC);
}
/* And wait for the TX hardware FIFO to drain */

View File

@ -112,11 +112,11 @@ struct watchdog_upperhalf_s
static int wdog_open(FAR struct file *filep);
static int wdog_close(FAR struct file *filep);
static ssize_t wdog_read(FAR struct file *filep, FAR char *buffer,
size_t buflen);
size_t buflen);
static ssize_t wdog_write(FAR struct file *filep, FAR const char *buffer,
size_t buflen);
size_t buflen);
static int wdog_ioctl(FAR struct file *filep, int cmd,
unsigned long arg);
unsigned long arg);
/****************************************************************************
* Private Data

View File

@ -399,7 +399,7 @@ static int bt_bridge_open(FAR struct bt_driver_s *drv)
if (atomic_fetch_add(&bridge->refs, 1) == 0)
{
int ret = driver->open(driver);
int ret = driver->open(driver);
if (ret < 0)
{
atomic_fetch_sub(&bridge->refs, 1);
@ -416,7 +416,7 @@ static int bt_bridge_send(FAR struct bt_driver_s *drv,
FAR void *data, size_t len)
{
FAR struct bt_bridge_device_s *device =
(FAR struct bt_bridge_device_s *)drv;
(FAR struct bt_bridge_device_s *)drv;
FAR struct bt_bridge_s *bridge = device->bridge;
FAR struct bt_driver_s *driver = bridge->driver;
irqstate_t flags;
@ -490,7 +490,7 @@ static int bt_bridge_ioctl(FAR struct bt_driver_s *drv, int cmd,
unsigned long arg)
{
FAR struct bt_bridge_device_s *device =
(FAR struct bt_bridge_device_s *)drv;
(FAR struct bt_bridge_device_s *)drv;
FAR struct bt_bridge_s *bridge = device->bridge;
int ret;

View File

@ -41,7 +41,7 @@
#include "bcmf_interface.h"
#include "bcmf_utils.h"
#include "bcmf_netdev.h"
#include "bcmf_netdev.h"
#include "bcmf_sdio_regs.h"