Skip to content

Commit 3e87587

Browse files
pdgendtfabiobaltieri
authored andcommitted
drivers: haptics: Place API into iterable section
Add wrapper DEVICE_API macro to all haptics_driver_api instances. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 6d178f9 commit 3e87587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/haptics/drv2605.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ static int drv2605_init(const struct device *dev)
612612
return 0;
613613
}
614614

615-
static const struct haptics_driver_api drv2605_driver_api = {
615+
static DEVICE_API(haptics, drv2605_driver_api) = {
616616
.start_output = &drv2605_start_output,
617617
.stop_output = &drv2605_stop_output,
618618
};

0 commit comments

Comments
 (0)