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
|
@ -30,7 +30,7 @@ DEVICE_DEFINE(dummy_noinit, DUMMY_NOINIT, NULL, NULL, NULL, NULL,
|
|||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, NULL);
|
||||
|
||||
/* To access from userspace, the device needs an API. Use a dummy GPIO one */
|
||||
static const struct gpio_driver_api fakedeferdriverapi;
|
||||
static DEVICE_API(gpio, fakedeferdriverapi);
|
||||
|
||||
/* Fake deferred devices */
|
||||
DEVICE_DT_DEFINE(DT_INST(0, fakedeferdriver), NULL, NULL, NULL, NULL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue