dts: Rename DT_.*_GPIO_* to DT_.*_GPIOS_*
Convert DT_.*_GPIO_{CONTROLLER,PIN,FLAGS} -> DT_.*_GPIOS_{CONTROLLER,PIN,FLAGS) Used the following commands to make these conversions: git grep -l DT_.*_GPIO_CONTROLLER | xargs sed -i 's/DT_\(.*\)_GPIO_CONTROLLER/DT_\1_GPIOS_CONTROLLER/g' git grep -l DT_.*_GPIO_PIN | xargs sed -i 's/DT_\(.*\)_GPIO_PIN/DT_\1_GPIOS_PIN/g' git grep -l DT_.*_GPIO_FLAGS | xargs sed -i 's/DT_\(.*\)_GPIO_FLAGS/DT_\1_GPIOS_FLAGS/g' Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
0eee0a3c6c
commit
a614a026b7
32 changed files with 121 additions and 121 deletions
|
@ -24,7 +24,7 @@ struct ili9340_data {
|
|||
struct device *command_data_gpio;
|
||||
struct device *spi_dev;
|
||||
struct spi_config spi_config;
|
||||
#ifdef DT_INST_0_ILITEK_ILI9340_CS_GPIO_CONTROLLER
|
||||
#ifdef DT_INST_0_ILITEK_ILI9340_CS_GPIOS_CONTROLLER
|
||||
struct spi_cs_control cs_ctrl;
|
||||
#endif
|
||||
};
|
||||
|
@ -61,10 +61,10 @@ static int ili9340_init(struct device *dev)
|
|||
data->spi_config.operation = SPI_OP_MODE_MASTER | SPI_WORD_SET(8);
|
||||
data->spi_config.slave = DT_INST_0_ILITEK_ILI9340_BASE_ADDRESS;
|
||||
|
||||
#ifdef DT_INST_0_ILITEK_ILI9340_CS_GPIO_CONTROLLER
|
||||
#ifdef DT_INST_0_ILITEK_ILI9340_CS_GPIOS_CONTROLLER
|
||||
data->cs_ctrl.gpio_dev =
|
||||
device_get_binding(DT_INST_0_ILITEK_ILI9340_CS_GPIO_CONTROLLER);
|
||||
data->cs_ctrl.gpio_pin = DT_INST_0_ILITEK_ILI9340_CS_GPIO_PIN;
|
||||
device_get_binding(DT_INST_0_ILITEK_ILI9340_CS_GPIOS_CONTROLLER);
|
||||
data->cs_ctrl.gpio_pin = DT_INST_0_ILITEK_ILI9340_CS_GPIOS_PIN;
|
||||
data->cs_ctrl.delay = 0U;
|
||||
data->spi_config.cs = &(data->cs_ctrl);
|
||||
#else
|
||||
|
|
|
@ -39,7 +39,7 @@ struct ssd1673_data {
|
|||
struct device *busy;
|
||||
struct device *spi_dev;
|
||||
struct spi_config spi_config;
|
||||
#if defined(DT_INST_0_SOLOMON_SSD1673FB_CS_GPIO_CONTROLLER)
|
||||
#if defined(DT_INST_0_SOLOMON_SSD1673FB_CS_GPIOS_CONTROLLER)
|
||||
struct spi_cs_control cs_ctrl;
|
||||
#endif
|
||||
u8_t scan_mode;
|
||||
|
@ -620,15 +620,15 @@ static int ssd1673_init(struct device *dev)
|
|||
gpio_pin_configure(driver->busy, DT_INST_0_SOLOMON_SSD1673FB_BUSY_GPIOS_PIN,
|
||||
GPIO_DIR_IN);
|
||||
|
||||
#if defined(DT_INST_0_SOLOMON_SSD1673FB_CS_GPIO_CONTROLLER)
|
||||
#if defined(DT_INST_0_SOLOMON_SSD1673FB_CS_GPIOS_CONTROLLER)
|
||||
driver->cs_ctrl.gpio_dev = device_get_binding(
|
||||
DT_INST_0_SOLOMON_SSD1673FB_CS_GPIO_CONTROLLER);
|
||||
DT_INST_0_SOLOMON_SSD1673FB_CS_GPIOS_CONTROLLER);
|
||||
if (!driver->cs_ctrl.gpio_dev) {
|
||||
LOG_ERR("Unable to get SPI GPIO CS device");
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
driver->cs_ctrl.gpio_pin = DT_INST_0_SOLOMON_SSD1673FB_CS_GPIO_PIN;
|
||||
driver->cs_ctrl.gpio_pin = DT_INST_0_SOLOMON_SSD1673FB_CS_GPIOS_PIN;
|
||||
driver->cs_ctrl.delay = 0U;
|
||||
driver->spi_config.cs = &driver->cs_ctrl;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue