drivers: timeaware_gpio: Place API into iterable section

Add wrapper DEVICE_API macro to all tgpio_driver_api instances.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-11-28 19:42:32 +01:00 committed by Fabio Baltieri
parent a113baa4d5
commit ec205e77e5

View file

@ -188,7 +188,7 @@ static int tgpio_intel_read_ts_ec(const struct device *dev,
return 0;
}
static const struct tgpio_driver_api api_funcs = {
static DEVICE_API(tgpio, api_funcs) = {
.pin_disable = tgpio_intel_pin_disable,
.get_time = tgpio_intel_get_time,
.set_perout = tgpio_intel_periodic_output,