sensor/dht: Make driver_api structure const.
Change-Id: I49b4a0cc4342cb51e0bbf6ea925da1ae3f55ff78 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
parent
0496b95391
commit
dbb5380020
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue