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:
Tomasz Bursztyka 2020-07-14 17:02:00 +02:00 committed by Carles Cufí
commit ef560e0a53
62 changed files with 142 additions and 143 deletions

View file

@ -309,7 +309,7 @@ int gpio_sam_init(const struct device *dev)
}
#define GPIO_SAM_INIT(n) \
static void port_##n##_sam_config_func(struct device *dev); \
static void port_##n##_sam_config_func(const struct device *dev); \
\
static const struct gpio_sam_config port_##n##_sam_config = { \
.common = { \
@ -328,7 +328,7 @@ int gpio_sam_init(const struct device *dev)
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
&gpio_sam_api); \
\
static void port_##n##_sam_config_func(struct device *dev) \
static void port_##n##_sam_config_func(const struct device *dev) \
{ \
IRQ_CONNECT(DT_INST_IRQN(n), DT_INST_IRQ(n, priority), \
gpio_sam_isr, \