sensor/tmp112: Make driver_api structure const.
Change-Id: I32e53df25364572427be87716864118740da8f99 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
parent
90d4354eef
commit
1dddd19810
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ static int tmp112_channel_get(struct device *dev,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct sensor_driver_api tmp112_driver_api = {
|
static const struct sensor_driver_api tmp112_driver_api = {
|
||||||
.attr_set = tmp112_attr_set,
|
.attr_set = tmp112_attr_set,
|
||||||
.sample_fetch = tmp112_sample_fetch,
|
.sample_fetch = tmp112_sample_fetch,
|
||||||
.channel_get = tmp112_channel_get,
|
.channel_get = tmp112_channel_get,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue