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
|
@ -359,11 +359,11 @@ static int uart_npcx_init(const struct device *dev)
|
|||
|
||||
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
|
||||
#define NPCX_UART_IRQ_CONFIG_FUNC_DECL(inst) \
|
||||
static void uart_npcx_irq_config_##inst(struct device *dev)
|
||||
static void uart_npcx_irq_config_##inst(const struct device *dev)
|
||||
#define NPCX_UART_IRQ_CONFIG_FUNC_INIT(inst) \
|
||||
.irq_config_func = uart_npcx_irq_config_##inst,
|
||||
#define NPCX_UART_IRQ_CONFIG_FUNC(inst) \
|
||||
static void uart_npcx_irq_config_##inst(const struct device *dev) \
|
||||
static void uart_npcx_irq_config_##inst(const struct device *dev) \
|
||||
{ \
|
||||
IRQ_CONNECT(DT_INST_IRQN(inst), \
|
||||
DT_INST_IRQ(inst, priority), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue