add const keyword for sensor ops

This commit is contained in:
guozhanxin 2019-02-12 16:52:10 +08:00
parent eae4394329
commit 9458791c28
1 changed files with 13 additions and 13 deletions

View File

@ -140,7 +140,7 @@ struct rt_sensor_device
void *data_buf; /* The buf 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 */
};