add const keyword for sensor ops
This commit is contained in:
parent
eae4394329
commit
9458791c28
|
@ -140,7 +140,7 @@ struct rt_sensor_device
|
||||||
void *data_buf; /* The buf of the data received */
|
void *data_buf; /* The buf of the data received */
|
||||||
rt_size_t data_len; /* The size of the data received */
|
rt_size_t data_len; /* The size of the data received */
|
||||||
|
|
||||||
struct rt_sensor_ops *ops; /* The sensor ops */
|
const struct rt_sensor_ops *ops; /* The sensor ops */
|
||||||
|
|
||||||
struct rt_sensor_module *module; /* The sensor module */
|
struct rt_sensor_module *module; /* The sensor module */
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue