sensor/tmp007: Make driver_api structure const.

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

View file

@ -112,7 +112,7 @@ static int tmp007_channel_get(struct device *dev,
return 0;
}
static struct sensor_driver_api tmp007_driver_api = {
static const struct sensor_driver_api tmp007_driver_api = {
#ifdef CONFIG_TMP007_TRIGGER
.attr_set = tmp007_attr_set,
.trigger_set = tmp007_trigger_set,