drivers: sensor: Place API into iterable section

Add wrapper DEVICE_API macro to all sensor_driver_api instances.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-11-28 20:41:54 +01:00 committed by Fabio Baltieri
commit a553af738d
205 changed files with 227 additions and 215 deletions

View file

@ -692,7 +692,7 @@ static int adxl372_channel_get(const struct device *dev,
return 0;
}
static const struct sensor_driver_api adxl372_api_funcs = {
static DEVICE_API(sensor, adxl372_api_funcs) = {
.attr_set = adxl372_attr_set,
.sample_fetch = adxl372_sample_fetch,
.channel_get = adxl372_channel_get,