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:
parent
1c57f39633
commit
f58647788a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue