sensor/bme280: Make driver_api structure const.
Change-Id: I8fe4e4a9be88eb07f438e4c580d25fe9deedc343 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
parent
3d8626e95c
commit
1836c61d43
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ static int bme280_channel_get(struct device *dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct sensor_driver_api bme280_api_funcs = {
|
||||
static const struct sensor_driver_api bme280_api_funcs = {
|
||||
.sample_fetch = bme280_sample_fetch,
|
||||
.channel_get = bme280_channel_get,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue