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:
parent
9e38bcc173
commit
75165050f7
13 changed files with 13 additions and 13 deletions
|
@ -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, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue