sensor/lsm9ds0_gyro: Make driver_api structure const.

Change-Id: I51947ce5f01b7ff615cca198b82b1aafe7e7d90e
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
Marcus Shawcroft 2016-10-24 08:34:02 +01:00 committed by Anas Nashif
commit f58647788a

View file

@ -258,7 +258,7 @@ static int lsm9ds0_gyro_attr_set(struct device *dev,
}
#endif
static struct sensor_driver_api lsm9ds0_gyro_api_funcs = {
static const struct sensor_driver_api lsm9ds0_gyro_api_funcs = {
.sample_fetch = lsm9ds0_gyro_sample_fetch,
.channel_get = lsm9ds0_gyro_channel_get,
#if defined(LSM9DS0_GYRO_SET_ATTR)