From a218f3261234259819cda40233afa0e394650917 Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Wed, 27 Nov 2024 22:54:25 +0100 Subject: [PATCH] drivers: haptics: Place API into iterable section Add wrapper DEVICE_API macro to all haptics_driver_api instances. Signed-off-by: Pieter De Gendt --- drivers/haptics/drv2605.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/haptics/drv2605.c b/drivers/haptics/drv2605.c index a1de61512f2b3..0050af867e9d5 100644 --- a/drivers/haptics/drv2605.c +++ b/drivers/haptics/drv2605.c @@ -612,7 +612,7 @@ static int drv2605_init(const struct device *dev) return 0; } -static const struct haptics_driver_api drv2605_driver_api = { +static DEVICE_API(haptics, drv2605_driver_api) = { .start_output = &drv2605_start_output, .stop_output = &drv2605_stop_output, };