drivers/hp206c: Make driver_api structure const.
Change-Id: I6e3c7e4e420d9b9c55bbb49cf6f13b6e09ec4bb7 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com> Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
e7a943385d
commit
a2e91dadb3
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ static int hp206c_channel_get(struct device *dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
struct sensor_driver_api hp206c_api = {
|
||||
const struct sensor_driver_api hp206c_api = {
|
||||
.attr_set = hp206c_attr_set,
|
||||
#ifdef CONFIG_HP206C_TRIGGER
|
||||
.trigger_set = hp206c_trigger_set,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue