sensor/bme280: Make driver_api structure const.

Change-Id: I8fe4e4a9be88eb07f438e4c580d25fe9deedc343
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
Marcus Shawcroft 2016-10-24 08:30:56 +01:00 committed by Anas Nashif
commit 1836c61d43

View file

@ -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,
};