mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-28 16:14:20 +08:00
[sensor] use arg to replace user_data
This commit is contained in:
committed by
Man, Jianting (Meco)
parent
9e152c117e
commit
6b9bdc12a9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user