drivers: ieee802154_mcr20a: fix style
Fix style before DT_IEEE802154_MCR20A* macros. Signed-off-by: Johann Fischer <j.fischer@phytec.de>
This commit is contained in:
parent
db64943aa5
commit
7734627215
|
@ -1344,7 +1344,7 @@ static inline int configure_gpios(struct device *dev)
|
|||
mcr20a->irq_gpio = device_get_binding(DT_MCR20A_GPIO_IRQ_B_NAME);
|
||||
if (mcr20a->irq_gpio == NULL) {
|
||||
LOG_ERR("Failed to get pointer to %s device",
|
||||
DT_MCR20A_GPIO_IRQ_B_NAME);
|
||||
DT_MCR20A_GPIO_IRQ_B_NAME);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
@ -1376,8 +1376,7 @@ static inline int configure_spi(struct device *dev)
|
|||
{
|
||||
struct mcr20a_context *mcr20a = dev->driver_data;
|
||||
|
||||
mcr20a->spi = device_get_binding(
|
||||
DT_IEEE802154_MCR20A_SPI_DRV_NAME);
|
||||
mcr20a->spi = device_get_binding(DT_IEEE802154_MCR20A_SPI_DRV_NAME);
|
||||
if (!mcr20a->spi) {
|
||||
LOG_ERR("Unable to get SPI device");
|
||||
return -ENODEV;
|
||||
|
@ -1397,8 +1396,8 @@ static inline int configure_spi(struct device *dev)
|
|||
mcr20a->spi_cfg.cs = &mcr20a->cs_ctrl;
|
||||
|
||||
LOG_DBG("SPI GPIO CS configured on %s:%u",
|
||||
DT_IEEE802154_MCR20A_GPIO_SPI_CS_DRV_NAME,
|
||||
DT_IEEE802154_MCR20A_GPIO_SPI_CS_PIN);
|
||||
DT_IEEE802154_MCR20A_GPIO_SPI_CS_DRV_NAME,
|
||||
DT_IEEE802154_MCR20A_GPIO_SPI_CS_PIN);
|
||||
#endif /* CONFIG_IEEE802154_MCR20A_GPIO_SPI_CS */
|
||||
|
||||
mcr20a->spi_cfg.frequency = DT_IEEE802154_MCR20A_SPI_FREQ;
|
||||
|
@ -1406,8 +1405,8 @@ static inline int configure_spi(struct device *dev)
|
|||
mcr20a->spi_cfg.slave = DT_IEEE802154_MCR20A_SPI_SLAVE;
|
||||
|
||||
LOG_DBG("SPI configured %s, %d",
|
||||
DT_IEEE802154_MCR20A_SPI_DRV_NAME,
|
||||
DT_IEEE802154_MCR20A_SPI_SLAVE);
|
||||
DT_IEEE802154_MCR20A_SPI_DRV_NAME,
|
||||
DT_IEEE802154_MCR20A_SPI_SLAVE);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue