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:
parent
8c9a2b2e82
commit
a553af738d
205 changed files with 227 additions and 215 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue