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,
|
||||
|
|
|
@ -1948,7 +1948,7 @@ static int test_gpio_init(const struct device *dev)
|
|||
#undef DT_DRV_COMPAT
|
||||
#define DT_DRV_COMPAT vnd_gpio_device
|
||||
|
||||
static const struct gpio_driver_api test_api;
|
||||
static DEVICE_API(gpio, test_api);
|
||||
|
||||
#define TEST_GPIO_INIT(num) \
|
||||
static struct test_gpio_data gpio_data_##num = { \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue