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:
Marcus Shawcroft 2016-10-24 08:32:20 +01:00 committed by Anas Nashif
commit a2e91dadb3

View file

@ -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,