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
|
@ -276,7 +276,7 @@ static int twi_nrfx_pm_control(const struct device *dev,
|
|||
BUILD_ASSERT(I2C_FREQUENCY(idx) != \
|
||||
I2C_NRFX_TWI_INVALID_FREQUENCY, \
|
||||
"Wrong I2C " #idx " frequency setting in dts"); \
|
||||
static int twi_##idx##_init(struct device *dev) \
|
||||
static int twi_##idx##_init(const struct device *dev) \
|
||||
{ \
|
||||
IRQ_CONNECT(DT_IRQN(I2C(idx)), DT_IRQ(I2C(idx), priority), \
|
||||
nrfx_isr, nrfx_twi_##idx##_irq_handler, 0); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue