summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2022-11-11 21:29:48 -0500
committerMan, Jianting (Meco) <[email protected]>2022-11-14 22:19:47 -0500
commit6b9bdc12a9d9ca6bd63144194060f116cc42139e (patch)
treedaa6a447595d2065c2a9863dc064867b98009e6f /components/drivers/include
parent9e152c117e8ad27d1e8ea3ed98b418c92913ac43 (diff)
[sensor] use arg to replace user_data
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/sensor.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/drivers/include/drivers/sensor.h b/components/drivers/include/drivers/sensor.h
index 11b4e00c24..a27887298d 100644
--- a/components/drivers/include/drivers/sensor.h
+++ b/components/drivers/include/drivers/sensor.h
@@ -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