Re: [PATCH v6 13/16] rust: driver: implement `Adapter`

2024-12-19 Thread Danilo Krummrich
On Thu, Dec 19, 2024 at 11:53:06AM +0100, Andreas Hindborg wrote: > > Hi Danilo, > > Danilo Krummrich writes: > > > In order to not duplicate code in bus specific implementations (e.g. > > platform), implement a generic `driver::Adapter` to represent the > > connection of matched drivers and de

Re: [PATCH v6 13/16] rust: driver: implement `Adapter`

2024-12-19 Thread Andreas Hindborg
Hi Danilo, Danilo Krummrich writes: > In order to not duplicate code in bus specific implementations (e.g. > platform), implement a generic `driver::Adapter` to represent the > connection of matched drivers and devices. > > Bus specific `Adapter` implementations can simply implement this trait

[PATCH v6 13/16] rust: driver: implement `Adapter`

2024-12-12 Thread Danilo Krummrich
In order to not duplicate code in bus specific implementations (e.g. platform), implement a generic `driver::Adapter` to represent the connection of matched drivers and devices. Bus specific `Adapter` implementations can simply implement this trait to inherit generic functionality, such as matchin