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
|
@ -148,7 +148,7 @@ static int pin_config(const struct device *dev,
|
|||
return -ENOTSUP;
|
||||
}
|
||||
|
||||
static const struct gpio_driver_api api_table = {
|
||||
static DEVICE_API(gpio, api_table) = {
|
||||
.pin_configure = pin_config,
|
||||
.port_get_raw = port_get,
|
||||
.port_set_masked_raw = port_set_masked,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue