sensor/dht: Make driver_api structure const.

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

View file

@ -217,7 +217,7 @@ static int dht_channel_get(struct device *dev,
return 0;
}
static struct sensor_driver_api dht_api = {
static const struct sensor_driver_api dht_api = {
.sample_fetch = &dht_sample_fetch,
.channel_get = &dht_channel_get,
};