diff --git a/arch/arm/include/stm32/dma2d.h b/arch/arm/include/stm32/dma2d.h index 3e6accf341..be807de31d 100644 --- a/arch/arm/include/stm32/dma2d.h +++ b/arch/arm/include/stm32/dma2d.h @@ -345,7 +345,7 @@ struct dma2d_layer_s * ****************************************************************************/ -FAR struct dma2d_layer_s * up_dma2dgetlayer(int lid); +FAR struct dma2d_layer_s *up_dma2dgetlayer(int lid); /**************************************************************************** * Name: up_dma2dcreatelayer diff --git a/arch/arm/src/lpc31xx/lpc31_cgudrvr.h b/arch/arm/src/lpc31xx/lpc31_cgudrvr.h index 47a2e3917f..8fbe96b88b 100644 --- a/arch/arm/src/lpc31xx/lpc31_cgudrvr.h +++ b/arch/arm/src/lpc31xx/lpc31_cgudrvr.h @@ -672,7 +672,7 @@ void lpc31_setfdiv(enum lpc31_domainid_e dmnid, enum lpc31_clockid_e clkid, * **************************************************************************************************/ -void lpc31_pllconfig(const struct lpc31_pllconfig_s * const cfg); +void lpc31_pllconfig(const struct lpc31_pllconfig_s *const cfg); /********************************************************************************************** * Name: lpc31_hp0pllconfig diff --git a/arch/arm/src/stm32/stm32_capture.h b/arch/arm/src/stm32/stm32_capture.h index d015c80e56..626bbe1949 100644 --- a/arch/arm/src/stm32/stm32_capture.h +++ b/arch/arm/src/stm32/stm32_capture.h @@ -194,7 +194,7 @@ FAR struct stm32_cap_dev_s *stm32_cap_init(int timer); /* Power-down timer, mark it as unused */ -int stm32_cap_deinit(FAR struct stm32_cap_dev_s * dev); +int stm32_cap_deinit(FAR struct stm32_cap_dev_s *dev); #undef EXTERN #if defined(__cplusplus) diff --git a/arch/arm/src/stm32/stm32_dma2d.h b/arch/arm/src/stm32/stm32_dma2d.h index 7755ffe39d..ddaeada7b2 100644 --- a/arch/arm/src/stm32/stm32_dma2d.h +++ b/arch/arm/src/stm32/stm32_dma2d.h @@ -83,7 +83,7 @@ * ****************************************************************************/ -FAR struct dma2d_layer_s * stm32_dma2dinitltdc(FAR struct stm32_ltdc_s *layer); +FAR struct dma2d_layer_s *stm32_dma2dinitltdc(FAR struct stm32_ltdc_s *layer); # endif /* CONFIG_STM32_LTDC_INTERFACE */ #endif /* CONFIG_STM32_DMA2D */ diff --git a/arch/arm/src/stm32/stm32_tim.h b/arch/arm/src/stm32/stm32_tim.h index 57fd2475c1..95e022c919 100644 --- a/arch/arm/src/stm32/stm32_tim.h +++ b/arch/arm/src/stm32/stm32_tim.h @@ -192,7 +192,7 @@ FAR struct stm32_tim_dev_s *stm32_tim_init(int timer); /* Power-down timer, mark it as unused */ -int stm32_tim_deinit(FAR struct stm32_tim_dev_s * dev); +int stm32_tim_deinit(FAR struct stm32_tim_dev_s *dev); /**************************************************************************** * Name: stm32_timer_initialize diff --git a/arch/arm/src/stm32f7/stm32_tim.h b/arch/arm/src/stm32f7/stm32_tim.h index c4561288a9..1e661f2c66 100644 --- a/arch/arm/src/stm32f7/stm32_tim.h +++ b/arch/arm/src/stm32f7/stm32_tim.h @@ -183,7 +183,7 @@ FAR struct stm32_tim_dev_s *stm32_tim_init(int timer); /* Power-down timer, mark it as unused */ -int stm32_tim_deinit(FAR struct stm32_tim_dev_s * dev); +int stm32_tim_deinit(FAR struct stm32_tim_dev_s *dev); /**************************************************************************** * Name: stm32_timer_initialize diff --git a/arch/arm/src/stm32l4/stm32l4_lptim.h b/arch/arm/src/stm32l4/stm32l4_lptim.h index bd7f7eb785..90e0cb0d3b 100644 --- a/arch/arm/src/stm32l4/stm32l4_lptim.h +++ b/arch/arm/src/stm32l4/stm32l4_lptim.h @@ -160,7 +160,7 @@ FAR struct stm32l4_lptim_dev_s *stm32l4_lptim_init(int timer); /* Power-down timer, mark it as unused */ -int stm32l4_lptim_deinit(FAR struct stm32l4_lptim_dev_s * dev); +int stm32l4_lptim_deinit(FAR struct stm32l4_lptim_dev_s *dev); #undef EXTERN #if defined(__cplusplus) diff --git a/arch/arm/src/stm32l4/stm32l4_tim.h b/arch/arm/src/stm32l4/stm32l4_tim.h index 1601f1277e..a52f64d354 100644 --- a/arch/arm/src/stm32l4/stm32l4_tim.h +++ b/arch/arm/src/stm32l4/stm32l4_tim.h @@ -191,7 +191,7 @@ FAR struct stm32l4_tim_dev_s *stm32l4_tim_init(int timer); /* Power-down timer, mark it as unused */ -int stm32l4_tim_deinit(FAR struct stm32l4_tim_dev_s * dev); +int stm32l4_tim_deinit(FAR struct stm32l4_tim_dev_s *dev); /**************************************************************************** * Name: stm32l4_timer_initialize diff --git a/arch/risc-v/src/nr5m100/nr5_timer.h b/arch/risc-v/src/nr5m100/nr5_timer.h index b1c76cc911..1c33a7e690 100644 --- a/arch/risc-v/src/nr5m100/nr5_timer.h +++ b/arch/risc-v/src/nr5m100/nr5_timer.h @@ -135,7 +135,7 @@ FAR struct nr5_timer_dev_s *nr5_timer_init(int timer); /* Power-down timer, mark it as unused */ -int nr5_timer_deinit(FAR struct nr5_timer_dev_s * dev); +int nr5_timer_deinit(FAR struct nr5_timer_dev_s *dev); /**************************************************************************** * Name: nr5_timer_initialize diff --git a/drivers/wireless/cc1101.c b/drivers/wireless/cc1101.c index aa27eda883..e42fe08572 100644 --- a/drivers/wireless/cc1101.c +++ b/drivers/wireless/cc1101.c @@ -291,12 +291,12 @@ struct cc1101_dev_s { const struct c1101_rfsettings_s *rfsettings; - struct spi_dev_s * spi; - uint8_t isrpin; /* CC1101 pin used to trigger interrupts */ - uint32_t pinset; /* GPIO of the MCU */ - uint8_t flags; - uint8_t channel; - uint8_t power; + struct spi_dev_s *spi; + uint8_t isrpin; /* CC1101 pin used to trigger interrupts */ + uint32_t pinset; /* GPIO of the MCU */ + uint8_t flags; + uint8_t channel; + uint8_t power; }; /**************************************************************************** @@ -309,7 +309,7 @@ static volatile int cc1101_interrupt = 0; * Private Functions ****************************************************************************/ -void cc1101_access_begin(FAR struct cc1101_dev_s * dev) +void cc1101_access_begin(FAR struct cc1101_dev_s *dev) { (void)SPI_LOCK(dev->spi, true); SPI_SELECT(dev->spi, SPIDEV_WIRELESS, true); @@ -318,7 +318,7 @@ void cc1101_access_begin(FAR struct cc1101_dev_s * dev) (void)SPI_HWFEATURES(dev->spi, 0); } -void cc1101_access_end(FAR struct cc1101_dev_s * dev) +void cc1101_access_end(FAR struct cc1101_dev_s *dev) { SPI_SELECT(dev->spi, SPIDEV_WIRELESS, false); (void)SPI_LOCK(dev->spi, false); @@ -338,7 +338,7 @@ void cc1101_access_end(FAR struct cc1101_dev_s * dev) * OK on success or errno is set. */ -int cc1101_access(FAR struct cc1101_dev_s * dev, uint8_t addr, +int cc1101_access(FAR struct cc1101_dev_s *dev, uint8_t addr, FAR uint8_t *buf, int length) { int stabyte; @@ -407,7 +407,7 @@ int cc1101_access(FAR struct cc1101_dev_s * dev, uint8_t addr, * pending in RX FIFO. */ -inline uint8_t cc1101_strobe(struct cc1101_dev_s * dev, uint8_t command) +inline uint8_t cc1101_strobe(struct cc1101_dev_s *dev, uint8_t command) { uint8_t status; @@ -421,13 +421,13 @@ inline uint8_t cc1101_strobe(struct cc1101_dev_s * dev, uint8_t command) return status; } -int cc1101_reset(struct cc1101_dev_s * dev) +int cc1101_reset(struct cc1101_dev_s *dev) { cc1101_strobe(dev, CC1101_SRES); return OK; } -int cc1101_checkpart(struct cc1101_dev_s * dev) +int cc1101_checkpart(struct cc1101_dev_s *dev) { uint8_t partnum; uint8_t version; @@ -446,7 +446,7 @@ int cc1101_checkpart(struct cc1101_dev_s * dev) return ERROR; } -void cc1101_dumpregs(struct cc1101_dev_s * dev, uint8_t addr, uint8_t length) +void cc1101_dumpregs(struct cc1101_dev_s *dev, uint8_t addr, uint8_t length) { uint8_t buf[0x30], i; @@ -463,7 +463,7 @@ void cc1101_dumpregs(struct cc1101_dev_s * dev, uint8_t addr, uint8_t length) printf("\n"); } -void cc1101_setpacketctrl(struct cc1101_dev_s * dev) +void cc1101_setpacketctrl(struct cc1101_dev_s *dev) { uint8_t values[3]; @@ -524,10 +524,10 @@ int cc1101_eventcb(int irq, FAR void *context) * Public Functions ****************************************************************************/ -struct cc1101_dev_s * cc1101_init(struct spi_dev_s * spi, uint8_t isrpin, - uint32_t pinset, const struct c1101_rfsettings_s * rfsettings) +struct cc1101_dev_s *cc1101_init(struct spi_dev_s *spi, uint8_t isrpin, + uint32_t pinset, const struct c1101_rfsettings_s *rfsettings) { - struct cc1101_dev_s * dev; + struct cc1101_dev_s *dev; ASSERT(spi); @@ -595,7 +595,7 @@ struct cc1101_dev_s * cc1101_init(struct spi_dev_s * spi, uint8_t isrpin, return dev; } -int cc1101_deinit(struct cc1101_dev_s * dev) +int cc1101_deinit(struct cc1101_dev_s *dev) { ASSERT(dev); @@ -612,19 +612,19 @@ int cc1101_deinit(struct cc1101_dev_s * dev) return 0; } -int cc1101_powerup(struct cc1101_dev_s * dev) +int cc1101_powerup(struct cc1101_dev_s *dev) { ASSERT(dev); return 0; } -int cc1101_powerdown(struct cc1101_dev_s * dev) +int cc1101_powerdown(struct cc1101_dev_s *dev) { ASSERT(dev); return 0; } -int cc1101_setgdo(struct cc1101_dev_s * dev, uint8_t pin, uint8_t function) +int cc1101_setgdo(struct cc1101_dev_s *dev, uint8_t pin, uint8_t function) { ASSERT(dev); ASSERT(pin <= CC1101_IOCFG0); @@ -658,7 +658,7 @@ int cc1101_setgdo(struct cc1101_dev_s * dev, uint8_t pin, uint8_t function) return cc1101_access(dev, pin, &function, -1); } -int cc1101_setrf(struct cc1101_dev_s * dev, const struct c1101_rfsettings_s *settings) +int cc1101_setrf(struct cc1101_dev_s *dev, const struct c1101_rfsettings_s *settings) { ASSERT(dev); ASSERT(settings); @@ -696,7 +696,7 @@ int cc1101_setrf(struct cc1101_dev_s * dev, const struct c1101_rfsettings_s *set return OK; } -int cc1101_setchannel(struct cc1101_dev_s * dev, uint8_t channel) +int cc1101_setchannel(struct cc1101_dev_s *dev, uint8_t channel) { ASSERT(dev); @@ -719,7 +719,7 @@ int cc1101_setchannel(struct cc1101_dev_s * dev, uint8_t channel) return dev->flags & FLAGS_RXONLY; } -uint8_t cc1101_setpower(struct cc1101_dev_s * dev, uint8_t power) +uint8_t cc1101_setpower(struct cc1101_dev_s *dev, uint8_t power) { ASSERT(dev); @@ -765,7 +765,7 @@ int cc1101_calcRSSIdBm(int rssi) return (rssi >> 1) - 74; } -int cc1101_receive(struct cc1101_dev_s * dev) +int cc1101_receive(struct cc1101_dev_s *dev) { ASSERT(dev); @@ -778,7 +778,7 @@ int cc1101_receive(struct cc1101_dev_s * dev) return 0; } -int cc1101_read(struct cc1101_dev_s * dev, uint8_t * buf, size_t size) +int cc1101_read(struct cc1101_dev_s *dev, uint8_t * buf, size_t size) { ASSERT(dev); @@ -828,7 +828,7 @@ int cc1101_read(struct cc1101_dev_s * dev, uint8_t * buf, size_t size) return 0; } -int cc1101_write(struct cc1101_dev_s * dev, const uint8_t * buf, size_t size) +int cc1101_write(struct cc1101_dev_s *dev, const uint8_t *buf, size_t size) { uint8_t packetlen; @@ -857,7 +857,7 @@ int cc1101_write(struct cc1101_dev_s * dev, const uint8_t * buf, size_t size) return 0; } -int cc1101_send(struct cc1101_dev_s * dev) +int cc1101_send(struct cc1101_dev_s *dev) { ASSERT(dev); @@ -877,7 +877,7 @@ int cc1101_send(struct cc1101_dev_s * dev) return 0; } -int cc1101_idle(struct cc1101_dev_s * dev) +int cc1101_idle(struct cc1101_dev_s *dev) { ASSERT(dev); cc1101_strobe(dev, CC1101_SIDLE); diff --git a/include/nuttx/sensors/lis331dl.h b/include/nuttx/sensors/lis331dl.h index 8d69b5d7c3..ab86728aa2 100644 --- a/include/nuttx/sensors/lis331dl.h +++ b/include/nuttx/sensors/lis331dl.h @@ -100,7 +100,7 @@ struct i2c_master_s; * ************************************************************************************/ -FAR struct lis331dl_dev_s *lis331dl_init(FAR struct i2c_master_s * i2c, +FAR struct lis331dl_dev_s *lis331dl_init(FAR struct i2c_master_s *i2c, uint16_t address); /************************************************************************************ @@ -117,7 +117,7 @@ FAR struct lis331dl_dev_s *lis331dl_init(FAR struct i2c_master_s * i2c, * ************************************************************************************/ -int lis331dl_deinit(FAR struct lis331dl_dev_s * dev); +int lis331dl_deinit(FAR struct lis331dl_dev_s *dev); /************************************************************************************ * Name: lis331dl_powerup @@ -127,7 +127,7 @@ int lis331dl_deinit(FAR struct lis331dl_dev_s * dev); * ************************************************************************************/ -int lis331dl_powerup(FAR struct lis331dl_dev_s * dev); +int lis331dl_powerup(FAR struct lis331dl_dev_s *dev); /************************************************************************************ * Name: lis331dl_powerdown @@ -137,7 +137,7 @@ int lis331dl_powerup(FAR struct lis331dl_dev_s * dev); * ************************************************************************************/ -int lis331dl_powerdown(FAR struct lis331dl_dev_s * dev); +int lis331dl_powerdown(FAR struct lis331dl_dev_s *dev); /************************************************************************************ * Name: lis331dl_setconversion @@ -155,7 +155,7 @@ int lis331dl_powerdown(FAR struct lis331dl_dev_s * dev); * ************************************************************************************/ -int lis331dl_setconversion(FAR struct lis331dl_dev_s * dev, bool full, bool fast); +int lis331dl_setconversion(FAR struct lis331dl_dev_s *dev, bool full, bool fast); /************************************************************************************ * Name: lis331dl_getprecision @@ -168,7 +168,7 @@ int lis331dl_setconversion(FAR struct lis331dl_dev_s * dev, bool full, bool fast * ************************************************************************************/ -int lis331dl_getprecision(FAR struct lis331dl_dev_s * dev); +int lis331dl_getprecision(FAR struct lis331dl_dev_s *dev); /************************************************************************************ * Name: lis331dl_getsamplerate @@ -181,7 +181,7 @@ int lis331dl_getprecision(FAR struct lis331dl_dev_s * dev); * ************************************************************************************/ -int lis331dl_getsamplerate(FAR struct lis331dl_dev_s * dev); +int lis331dl_getsamplerate(FAR struct lis331dl_dev_s *dev); /************************************************************************************ * Name: lis331dl_getreadings @@ -200,7 +200,7 @@ int lis331dl_getsamplerate(FAR struct lis331dl_dev_s * dev); ************************************************************************************/ FAR const struct lis331dl_vector_s * - lis331dl_getreadings(FAR struct lis331dl_dev_s * dev); + lis331dl_getreadings(FAR struct lis331dl_dev_s *dev); #undef EXTERN #if defined(__cplusplus) diff --git a/include/nuttx/wireless/cc1101.h b/include/nuttx/wireless/cc1101.h index 8d8c499296..0f695744fb 100644 --- a/include/nuttx/wireless/cc1101.h +++ b/include/nuttx/wireless/cc1101.h @@ -395,8 +395,8 @@ EXTERN const struct c1101_rfsettings_s cc1101_rfsettings_ISM2_905MHzGFSK250kbps; * ****************************************************************************/ -struct cc1101_dev_s * cc1101_init(struct spi_dev_s * spi, uint8_t isrpin, - uint32_t pinset, const struct c1101_rfsettings_s * rfsettings); +struct cc1101_dev_s *cc1101_init(struct spi_dev_s *spi, uint8_t isrpin, + uint32_t pinset, const struct c1101_rfsettings_s *rfsettings); /**************************************************************************** ** Deinitialize Chipcon CC1101 Chip @@ -409,31 +409,31 @@ struct cc1101_dev_s * cc1101_init(struct spi_dev_s * spi, uint8_t isrpin, * ****************************************************************************/ -int cc1101_deinit(struct cc1101_dev_s * dev); +int cc1101_deinit(struct cc1101_dev_s *dev); /**************************************************************************** * Power up device, start conversion. Returns zero on success. ****************************************************************************/ -int cc1101_powerup(struct cc1101_dev_s * dev); +int cc1101_powerup(struct cc1101_dev_s *dev); /**************************************************************************** * Power down device, stop conversion. Returns zero on success. ****************************************************************************/ -int cc1101_powerdown(struct cc1101_dev_s * dev); +int cc1101_powerdown(struct cc1101_dev_s *dev); /**************************************************************************** * Set Multi Purpose Output Function. Returns zero on success. ****************************************************************************/ -int cc1101_setgdo(struct cc1101_dev_s * dev, uint8_t pin, uint8_t function); +int cc1101_setgdo(struct cc1101_dev_s *dev, uint8_t pin, uint8_t function); /**************************************************************************** * Set RF settings. Use one from the database above. ****************************************************************************/ -int cc1101_setrf(struct cc1101_dev_s * dev, +int cc1101_setrf(struct cc1101_dev_s *dev, const struct c1101_rfsettings_s *settings); /**************************************************************************** @@ -447,7 +447,7 @@ int cc1101_setrf(struct cc1101_dev_s * dev, * ****************************************************************************/ -int cc1101_setchannel(struct cc1101_dev_s * dev, uint8_t channel); +int cc1101_setchannel(struct cc1101_dev_s *dev, uint8_t channel); /**************************************************************************** * Set Output Power @@ -465,7 +465,7 @@ int cc1101_setchannel(struct cc1101_dev_s * dev, uint8_t channel); * ****************************************************************************/ -uint8_t cc1101_setpower(struct cc1101_dev_s * dev, uint8_t power); +uint8_t cc1101_setpower(struct cc1101_dev_s *dev, uint8_t power); /**************************************************************************** * Convert RSSI as obtained from CC1101 to [dBm] */ @@ -486,7 +486,7 @@ int cc1101_calcRSSIdBm(int rssi); * ****************************************************************************/ -int cc1101_receive(struct cc1101_dev_s * dev); +int cc1101_receive(struct cc1101_dev_s *dev); /**************************************************************************** * Read received packet @@ -508,7 +508,7 @@ int cc1101_receive(struct cc1101_dev_s * dev); * ****************************************************************************/ -int cc1101_read(struct cc1101_dev_s * dev, uint8_t * buf, size_t size); +int cc1101_read(struct cc1101_dev_s *dev, uint8_t *buf, size_t size); /**************************************************************************** * Write data to be send, using the cc1101_send() @@ -522,7 +522,7 @@ int cc1101_read(struct cc1101_dev_s * dev, uint8_t * buf, size_t size); * ****************************************************************************/ -int cc1101_write(struct cc1101_dev_s * dev, const uint8_t * buf, size_t size); +int cc1101_write(struct cc1101_dev_s *dev, const uint8_t *buf, size_t size); /**************************************************************************** * Send data previously written using cc1101_write() @@ -535,7 +535,7 @@ int cc1101_write(struct cc1101_dev_s * dev, const uint8_t * buf, size_t size); * ****************************************************************************/ -int cc1101_send(struct cc1101_dev_s * dev); +int cc1101_send(struct cc1101_dev_s *dev); /**************************************************************************** * Enter idle state (after reception and transmission completes). @@ -545,7 +545,7 @@ int cc1101_send(struct cc1101_dev_s * dev); * ****************************************************************************/ -int cc1101_idle(struct cc1101_dev_s * dev); +int cc1101_idle(struct cc1101_dev_s *dev); #undef EXTERN #if defined(__cplusplus)