[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:
GuEe-GUI
2025-12-01 16:46:17 +08:00
committed by R b b666
parent e5db582cfa
commit 798c84647c
3 changed files with 22 additions and 1 deletions

View File

@@ -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)