drivers: gpio: remove '&' when assigning gpio_xxx_init function

Remove address-of operator ('&') when assigning `gpio_xxx_init`
function pointer in `DEVICE_DT_INST_DEFINE` macro.

This change aims to maintain consistency among the drivers in
`drivers/gpio`, ensuring that all function pointer assignments
follow the same pattern.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
This commit is contained in:
Pisit Sawangvonganan 2024-05-25 15:45:07 +07:00 committed by Henrik Brix Andersen
commit 75165050f7
13 changed files with 13 additions and 13 deletions

View file

@ -191,7 +191,7 @@ static int gpio_davinci_init(const struct device *dev)
static struct gpio_davinci_data gpio_davinci_##n##_data; \
\
DEVICE_DT_INST_DEFINE(n, \
&gpio_davinci_init, \
gpio_davinci_init, \
NULL, \
&gpio_davinci_##n##_data, \
&gpio_davinci_##n##_config, \