drivers: gpio: Place API into iterable section
Add wrapper DEVICE_API macro to all gpio_driver_api instances. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
548958de05
commit
6d178f9cd9
94 changed files with 97 additions and 97 deletions
|
@ -139,7 +139,7 @@ static int gpio_davinci_port_toggle_bits(const struct device *dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const struct gpio_driver_api gpio_davinci_driver_api = {
|
||||
static DEVICE_API(gpio, gpio_davinci_driver_api) = {
|
||||
.pin_configure = gpio_davinci_configure,
|
||||
.port_get_raw = gpio_davinci_port_get_raw,
|
||||
.port_set_masked_raw = gpio_davinci_port_set_masked_raw,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue