sensor/tmp112: Make driver_api structure const.

Change-Id: I32e53df25364572427be87716864118740da8f99
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
Marcus Shawcroft 2016-10-24 08:36:27 +01:00 committed by Anas Nashif
commit 1dddd19810

View file

@ -219,7 +219,7 @@ static int tmp112_channel_get(struct device *dev,
return 0;
}
static struct sensor_driver_api tmp112_driver_api = {
static const struct sensor_driver_api tmp112_driver_api = {
.attr_set = tmp112_attr_set,
.sample_fetch = tmp112_sample_fetch,
.channel_get = tmp112_channel_get,