boards: Mixed Case fixes
fixes for Mixed Case Identifiers reported by nxstyle tool Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
parent
f8420a9e47
commit
21190ab90d
@ -162,7 +162,7 @@
|
||||
#define IOMUX_FT5X06_RST (IOMUX_PULL_NONE | IOMUX_CMOS_OUTPUT | \
|
||||
IOMUX_DRIVE_40OHM | IOMUX_SPEED_MEDIUM | \
|
||||
IOMUX_SLEW_SLOW) /* AD_B0_11 */
|
||||
#define GPIO_FT5X06_CTRSTn (GPIO_OUTPUT | GPIO_OUTPUT_ZERO | \
|
||||
#define GPIO_FT5X06_CTRSTN (GPIO_OUTPUT | GPIO_OUTPUT_ZERO | \
|
||||
GPIO_PORT1 | GPIO_PIN2 | IOMUX_FT5X06_RST) /* AD_B0_02 */
|
||||
|
||||
/* Test Pins ****************************************************************/
|
||||
|
@ -186,7 +186,7 @@ static void imxrt_ft5x06_wakeup(FAR const struct ft5x06_config_s *config)
|
||||
static void imxrt_ft5x06_nreset(FAR const struct ft5x06_config_s *config,
|
||||
bool nstate)
|
||||
{
|
||||
imxrt_gpio_write(GPIO_FT5X06_CTRSTn, nstate);
|
||||
imxrt_gpio_write(GPIO_FT5X06_CTRSTN, nstate);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@ -206,9 +206,9 @@ int imxrt_ft5x06_register(void)
|
||||
FAR struct i2c_master_s *i2c;
|
||||
int ret;
|
||||
|
||||
/* Initialize CTRSTn pin */
|
||||
/* Initialize CTRSTN pin */
|
||||
|
||||
imxrt_config_gpio(GPIO_FT5X06_CTRSTn);
|
||||
imxrt_config_gpio(GPIO_FT5X06_CTRSTN);
|
||||
|
||||
#ifndef CONFIG_FT5X06_POLLMODE
|
||||
int irq;
|
||||
@ -228,7 +228,7 @@ int imxrt_ft5x06_register(void)
|
||||
|
||||
/* Take the FT5X06 out of reset */
|
||||
|
||||
imxrt_gpio_write(GPIO_FT5X06_CTRSTn, true);
|
||||
imxrt_gpio_write(GPIO_FT5X06_CTRSTN, true);
|
||||
|
||||
/* The FT5X06 is on LPI2C1. Get the handle and register the F5x06 device */
|
||||
|
||||
@ -246,7 +246,7 @@ int imxrt_ft5x06_register(void)
|
||||
syslog(LOG_ERR, "ERROR: Failed to register FT5X06 driver: %d\n",
|
||||
ret);
|
||||
|
||||
imxrt_gpio_write(GPIO_FT5X06_CTRSTn, false);
|
||||
imxrt_gpio_write(GPIO_FT5X06_CTRSTN, false);
|
||||
imxrt_i2cbus_uninitialize(i2c);
|
||||
return ret;
|
||||
}
|
||||
|
@ -170,7 +170,7 @@ void up_vs1053initialize(FAR struct spi_dev_s * spi)
|
||||
{
|
||||
int ret;
|
||||
char name[8];
|
||||
FAR struct audio_lowerhalf_s *pVs1053;
|
||||
FAR struct audio_lowerhalf_s *PVS1053;
|
||||
|
||||
/* Assumptions:
|
||||
* 1) SPI pins were configured in up_spi.c early in the boot-up phase.
|
||||
@ -192,8 +192,8 @@ void up_vs1053initialize(FAR struct spi_dev_s * spi)
|
||||
|
||||
/* Bind the SPI port to the VS1053 driver */
|
||||
|
||||
pVs1053 = vs1053_initialize(spi, &g_vs1053lower.lower, VS1053_DEVNO);
|
||||
if (pVs1053 == NULL)
|
||||
PVS1053 = vs1053_initialize(spi, &g_vs1053lower.lower, VS1053_DEVNO);
|
||||
if (PVS1053 == NULL)
|
||||
{
|
||||
auderr("ERROR: Failed to bind SPI port %d VS1053 device\n",
|
||||
VS1053_DEVNO);
|
||||
@ -203,7 +203,7 @@ void up_vs1053initialize(FAR struct spi_dev_s * spi)
|
||||
/* Now register the audio device */
|
||||
|
||||
sprintf(name, "vs1053d%d", VS1053_DEVNO);
|
||||
ret = audio_register(name, pVs1053);
|
||||
ret = audio_register(name, PVS1053);
|
||||
if (ret < 0)
|
||||
{
|
||||
auderr("ERROR: Failed to register VS1053 Audio device\n");
|
||||
|
Loading…
Reference in New Issue
Block a user