Re: [PATCH v2 3/6] rust: device: Support testing devices for equality

From: Greg Kroah-Hartman

Date: Tue Feb 03 2026 - 11:17:42 EST


On Tue, Feb 03, 2026 at 03:46:32PM +0000, Matthew Maurer wrote:
> This allows device drivers to check if, for example, an auxiliary
> devices is one of its children by comparing the parent field, or
> checking if a device parameter is its own device.
>
> Also convert existing `.as_raw() != .as_raw()` to use this new
> implementation.

Ah, ok, I can see how getting rid of the as_raw() calls here is a "good
thing", but overall it's just the same code paths :)

And I don't see what patch in this series uses this, am I missing it?

thanks,

greg k-h