drivers: kscan: Place API into iterable section

Add wrapper DEVICE_API macro to all kscan_driver_api instances.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-11-28 13:41:00 +01:00 committed by Fabio Baltieri
commit 710aee823e

View file

@ -94,7 +94,7 @@ static int kscan_input_init(const struct device *dev)
return 0;
}
static const struct kscan_driver_api kscan_input_driver_api = {
static DEVICE_API(kscan, kscan_input_driver_api) = {
.config = kscan_input_configure,
.enable_callback = kscan_input_enable_callback,
.disable_callback = kscan_input_disable_callback,