[sensor] use arg to replace user_data

This commit is contained in:
Meco Man
2022-11-14 22:19:47 -05:00
committed by Man, Jianting (Meco)
parent 9e152c117e
commit 6b9bdc12a9
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -144,9 +144,9 @@ struct rt_sensor_info
struct rt_sensor_intf
{
char *dev_name; /* The name of the communication device */
rt_uint8_t type; /* Communication interface type */
void *user_data; /* Private data for the sensor. ex. i2c addr,spi cs,control I/O */
char *dev_name; /* The name of the communication device */
rt_uint8_t type; /* Communication interface type */
void *arg; /* Interface argument for the sensor. ex. i2c addr,spi cs,control I/O */
};
struct rt_sensor_config