sensor/tmp007: Make driver_api structure const.
Change-Id: I1bdffc48038bc2221ce8f610e857f0be10d90987 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
parent
593c2621a3
commit
90d4354eef
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ static int tmp007_channel_get(struct device *dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct sensor_driver_api tmp007_driver_api = {
|
||||
static const struct sensor_driver_api tmp007_driver_api = {
|
||||
#ifdef CONFIG_TMP007_TRIGGER
|
||||
.attr_set = tmp007_attr_set,
|
||||
.trigger_set = tmp007_trigger_set,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue