drivers: Manual const-ification of device driver instance
These are all the case that coccinelle cannot find as they are inside macro declarations. Fixed via: git grep -rlz -E "\(struct device \*" | xargs -0 sed -i 's/(struct device/(const struct device/g' Fixes #27399 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
26cbd6a58c
commit
ef560e0a53
62 changed files with 142 additions and 143 deletions
|
@ -289,7 +289,7 @@ static const struct spi_driver_api spi_mcux_driver_api = {
|
|||
};
|
||||
|
||||
#define SPI_MCUX_DSPI_DEVICE(id) \
|
||||
static void spi_mcux_config_func_##id(struct device *dev); \
|
||||
static void spi_mcux_config_func_##id(const struct device *dev); \
|
||||
static const struct spi_mcux_config spi_mcux_config_##id = { \
|
||||
.base = (SPI_Type *)DT_INST_REG_ADDR(id), \
|
||||
.clock_name = DT_INST_CLOCKS_LABEL(id), \
|
||||
|
@ -318,7 +318,7 @@ static const struct spi_driver_api spi_mcux_driver_api = {
|
|||
POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
&spi_mcux_driver_api); \
|
||||
static void spi_mcux_config_func_##id(struct device *dev) \
|
||||
static void spi_mcux_config_func_##id(const struct device *dev) \
|
||||
{ \
|
||||
IRQ_CONNECT(DT_INST_IRQN(id), \
|
||||
DT_INST_IRQ(id, priority), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue