diff options
| author | chenyingchun0312 <[email protected]> | 2021-12-02 20:41:03 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2021-12-17 10:25:08 +0800 |
| commit | 417efc370f0db86a1bc16916564658ae41443675 (patch) | |
| tree | c54a4de04fd0c7176608b0c104125dd8350e1316 /components/drivers/include | |
| parent | 0c4e7337373821161e171057b081767a60c2f892 (diff) | |
[drivers/i2c] optimize i2c driver framework
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/i2c.h | 2 | ||||
| -rw-r--r-- | components/drivers/include/drivers/i2c_dev.h | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/components/drivers/include/drivers/i2c.h b/components/drivers/include/drivers/i2c.h index 7bf99d26cc..308c344294 100644 --- a/components/drivers/include/drivers/i2c.h +++ b/components/drivers/include/drivers/i2c.h @@ -55,7 +55,6 @@ struct rt_i2c_bus_device struct rt_device parent; const struct rt_i2c_bus_device_ops *ops; rt_uint16_t flags; - rt_uint16_t addr; struct rt_mutex lock; rt_uint32_t timeout; rt_uint32_t retries; @@ -64,7 +63,6 @@ struct rt_i2c_bus_device struct rt_i2c_client { - struct rt_device parent; struct rt_i2c_bus_device *bus; rt_uint16_t client_addr; }; diff --git a/components/drivers/include/drivers/i2c_dev.h b/components/drivers/include/drivers/i2c_dev.h index 080ff26f87..268f52b1fb 100644 --- a/components/drivers/include/drivers/i2c_dev.h +++ b/components/drivers/include/drivers/i2c_dev.h @@ -19,7 +19,6 @@ extern "C" { #endif #define RT_I2C_DEV_CTRL_10BIT 0x20 -#define RT_I2C_DEV_CTRL_ADDR 0x21 #define RT_I2C_DEV_CTRL_TIMEOUT 0x22 #define RT_I2C_DEV_CTRL_RW 0x23 #define RT_I2C_DEV_CTRL_CLK 0x24 |
