Re: [PATCH v6 1/3] rust: i2c: add basic I2C device and driver abstractions
From: Danilo Krummrich
Date: Sun Oct 26 2025 - 06:49:57 EST
On 10/5/25 12:23 PM, Igor Korotin wrote:
> Implement the core abstractions needed for I2C drivers, including:
>
> * `i2c::Driver` — the trait drivers must implement, including `probe`
>
> * `i2c::I2cClient` — a safe wrapper around `struct i2c_client`
>
> * `i2c::Adapter` — implements `driver::RegistrationOps` to hook into the
> generic `driver::Registration` machinery
>
> * `i2c::DeviceId` — a `RawDeviceIdIndex` implementation for I2C device IDs
>
> Signed-off-by: Igor Korotin <igor.korotin.linux@xxxxxxxxx>
Acked-by: Danilo Krummrich <dakr@xxxxxxxxxx>