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