sensor/lis3mdl: Make driver_api structure const.
Change-Id: I4e6bb185c3ac1fe8f0bd5d186d5dc1c79274078e Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
parent
7b92b59c83
commit
b908f536d3
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ int lis3mdl_sample_fetch(struct device *dev, enum sensor_channel chan)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct sensor_driver_api lis3mdl_driver_api = {
|
||||
static const struct sensor_driver_api lis3mdl_driver_api = {
|
||||
#if CONFIG_LIS3MDL_TRIGGER
|
||||
.trigger_set = lis3mdl_trigger_set,
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue