[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <DEBB6T5ZEYQW.19GFZ39AF1SVO@kernel.org>
Date: Tue, 18 Nov 2025 11:04:53 +1300
From: "Danilo Krummrich" <dakr@...nel.org>
To: "Markus Probst" <markus.probst@...teo.de>
Cc: "Greg Kroah-Hartman" <gregkh@...uxfoundation.org>, "Miguel Ojeda"
<ojeda@...nel.org>, "Alex Gaynor" <alex.gaynor@...il.com>, "Rafael J.
Wysocki" <rafael@...nel.org>, "Lee Jones" <lee@...nel.org>, "Pavel Machek"
<pavel@...nel.org>, "Dave Ertman" <david.m.ertman@...el.com>, "Ira Weiny"
<ira.weiny@...el.com>, "Leon Romanovsky" <leon@...nel.org>, "Boqun Feng"
<boqun.feng@...il.com>, "Gary Guo" <gary@...yguo.net>,
<bjorn3_gh@...tonmail.com>, "Benno Lossin" <lossin@...nel.org>, "Andreas
Hindborg" <a.hindborg@...nel.org>, "Alice Ryhl" <aliceryhl@...gle.com>,
"Trevor Gross" <tmgross@...ch.edu>, "Bjorn Helgaas" <bhelgaas@...gle.com>,
Krzysztof WilczyĆski <kwilczynski@...nel.org>,
<rust-for-linux@...r.kernel.org>, <linux-leds@...r.kernel.org>,
<linux-pci@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v7 1/2] rust: Add trait to convert a device reference to
a bus device reference
On Tue Oct 28, 2025 at 9:06 AM NZDT, Markus Probst wrote:
> Implement the `AsBusDevice` trait for converting a `Device` reference to a
> bus device reference for all bus devices.
>
> The `AsBusDevice` trait allows abstractions to provide the bus device in
> class device callbacks. It must not be used by drivers and is intended for
> bus and class device abstractions only.
>
> Signed-off-by: Markus Probst <markus.probst@...teo.de>
Applied to driver-core-testing, thanks!
[ * Remove unused import.
* Change visibility of AsBusDevice to public.
* Fix build for USB.
* Add impl for I2cClient.
- Danilo ]
--
Given that it's already quite late in the cycle, I expect the LED stuff to land
in the next cycle, hence I picked this one up in the driver-core tree.
- Danilo
Powered by blists - more mailing lists