summaryrefslogtreecommitdiff
path: root/components/drivers/i2c/i2c_dev.c
diff options
context:
space:
mode:
authorchenyingchun0312 <[email protected]>2021-12-02 20:41:03 +0800
committerBernard Xiong <[email protected]>2021-12-17 10:25:08 +0800
commit417efc370f0db86a1bc16916564658ae41443675 (patch)
treec54a4de04fd0c7176608b0c104125dd8350e1316 /components/drivers/i2c/i2c_dev.c
parent0c4e7337373821161e171057b081767a60c2f892 (diff)
[drivers/i2c] optimize i2c driver framework
Diffstat (limited to 'components/drivers/i2c/i2c_dev.c')
-rw-r--r--components/drivers/i2c/i2c_dev.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/components/drivers/i2c/i2c_dev.c b/components/drivers/i2c/i2c_dev.c
index c30bb62a92..4e2ca8924f 100644
--- a/components/drivers/i2c/i2c_dev.c
+++ b/components/drivers/i2c/i2c_dev.c
@@ -77,9 +77,6 @@ static rt_err_t i2c_bus_device_control(rt_device_t dev,
case RT_I2C_DEV_CTRL_10BIT:
bus->flags |= RT_I2C_ADDR_10BIT;
break;
- case RT_I2C_DEV_CTRL_ADDR:
- bus->addr = *(rt_uint16_t *)args;
- break;
case RT_I2C_DEV_CTRL_TIMEOUT:
bus->timeout = *(rt_uint32_t *)args;
break;