Skip to content

Commit ec205e7

Browse files
pdgendtfabiobaltieri
authored andcommitted
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>
1 parent a113baa commit ec205e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/misc/timeaware_gpio/timeaware_gpio_intel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ static int tgpio_intel_read_ts_ec(const struct device *dev,
188188
return 0;
189189
}
190190

191-
static const struct tgpio_driver_api api_funcs = {
191+
static DEVICE_API(tgpio, api_funcs) = {
192192
.pin_disable = tgpio_intel_pin_disable,
193193
.get_time = tgpio_intel_get_time,
194194
.set_perout = tgpio_intel_periodic_output,

0 commit comments

Comments
 (0)