sensor/hdc1008: Make driver_api structure const.

Change-Id: If2c79c29957a49a4fee492d0235060c653d1ef70
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
Marcus Shawcroft 2016-10-24 08:31:43 +01:00 committed by Anas Nashif
commit ccd28b9523

View file

@ -96,7 +96,7 @@ static int hdc1008_channel_get(struct device *dev,
return 0;
}
static struct sensor_driver_api hdc1008_driver_api = {
static const struct sensor_driver_api hdc1008_driver_api = {
.sample_fetch = hdc1008_sample_fetch,
.channel_get = hdc1008_channel_get,
};