drivers: use macro to define device structures
Replace individual device instance definitions with the macro that expands to the equivalent change. F='struct device DEVICE_NAME_GET' git grep -l "$F" \ | xargs sed -i -r \ -e "s@$F"'\(([^)]*)\);@DEVICE_DECLARE(\1);@' Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
75a69b940e
commit
bc34501892
21 changed files with 21 additions and 21 deletions
|
@ -882,7 +882,7 @@ static struct device *get_dev_from_tx_dma_channel(uint32_t dma_channel)
|
|||
}
|
||||
|
||||
#define I2S_INIT(index, clk_sel) \
|
||||
static struct device DEVICE_NAME_GET(i2s_stm32_##index); \
|
||||
DEVICE_DECLARE(i2s_stm32_##index); \
|
||||
\
|
||||
static void i2s_stm32_irq_config_func_##index(struct device *dev); \
|
||||
\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue