Re: [PATCH 2/4] rust: device: implement device context marker
From: Benno Lossin
Date: Thu Mar 13 2025 - 10:37:38 EST
On Thu Mar 13, 2025 at 3:20 PM CET, Danilo Krummrich wrote:
> On Thu, Mar 13, 2025 at 10:52:34AM +0000, Benno Lossin wrote:
>> On Thu Mar 13, 2025 at 11:41 AM CET, Danilo Krummrich wrote:
>>
>> > However, we can always change visibility as needed, so I'm fine making it sealed
>> > for now.
>>
>> Couldn't you just add them here? Then sealing wouldn't be a problem.
>
> Yes, but I wouldn't want bus specific stuff to reside in device.rs.
Sure, we can always make the sealed trait crate-public, since my main
concern is that a driver author tries to add a new context.
---
Cheers,
Benno