On Wed, Sep 11, 2024 at 07:35:35PM +0200, Danilo Krummrich wrote:
On Wed, Sep 11, 2024 at 04:56:14PM +0200, Greg Kroah-Hartman wrote:
quoted
On Wed, Sep 11, 2024 at 07:57:18PM +0530, Ayush Singh wrote:
quoted
+/// An identifier for Platform devices.
+///
+/// Represents the kernel's [`struct of_device_id`]. This is used to find an appropriate
+/// Platform driver.
+///
+/// [`struct of_device_id`]: srctree/include/linux/mod_devicetable.h
+pub struct DeviceId(&'static CStr);
+
+impl DeviceId {
<snip>
I appreciate posting this, but this really should go on top of the
device driver work Danilo Krummrich has been doing.
If everyone agrees, I'd offer to just provide platform device / driver
abstractions with my next patch series. This way you don't need to worry
about aligning things with the rest of the abstractions yourself and throughout
potential further versions of the series.
That sounds good to me, thanks!
Just be aware that I probably won't get to work on it until after LPC.
We will not be able to review anything until after LPC either :)
thanks,
greg k-h