Fixes for coding standard: '*' needs to 'snuggle' with following variable name

This commit is contained in:
Gregory Nutt 2017-02-28 18:37:44 -06:00
parent ded155c638
commit ac6e552ff7
12 changed files with 60 additions and 60 deletions

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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 */

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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);

View File

@ -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)

View File

@ -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)