mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-28 01:50:22 +00:00
[DM/I2C] Update I2C for DM
1. Add get id match data API. 2. Set I2C device name default before adding to bus. 3. Add Kconfig import for DM. Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
@@ -61,6 +61,8 @@ void i2c_bus_scan_clients(struct rt_i2c_bus_device *bus)
|
||||
client->bus = bus;
|
||||
client->client_addr = client_addr;
|
||||
|
||||
rt_dm_dev_set_name(&client->parent, "%s", client->name);
|
||||
|
||||
rt_i2c_device_register(client);
|
||||
|
||||
if (i2c_client_np != child_np)
|
||||
|
||||
Reference in New Issue
Block a user