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
|
@ -587,7 +587,7 @@ do { \
|
|||
#endif
|
||||
|
||||
#define ADC_SAM0_DEVICE(n) \
|
||||
static void adc_sam0_config_##n(struct device *dev); \
|
||||
static void adc_sam0_config_##n(const struct device *dev); \
|
||||
static const struct adc_sam0_cfg adc_sam_cfg_##n = { \
|
||||
.regs = (Adc *)DT_INST_REG_ADDR(n), \
|
||||
ADC_SAM0_CLOCK_CONTROL(n) \
|
||||
|
@ -607,7 +607,7 @@ do { \
|
|||
&adc_sam_cfg_##n, POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
&adc_sam0_api); \
|
||||
static void adc_sam0_config_##n(struct device *dev) \
|
||||
static void adc_sam0_config_##n(const struct device *dev) \
|
||||
{ \
|
||||
IRQ_CONNECT(DT_INST_IRQN(n), \
|
||||
DT_INST_IRQ(n, priority), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue