Re: [PATCH v2 3/6] rust: device: Support testing devices for equality
From: Danilo Krummrich
Date: Tue Feb 03 2026 - 10:57:16 EST
On Tue Feb 3, 2026 at 4:46 PM CET, 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.
>
> Signed-off-by: Matthew Maurer <mmaurer@xxxxxxxxxx>
In case this should eventually go through another tree:
Acked-by: Danilo Krummrich <dakr@xxxxxxxxxx>
But please let me know if you want me to pick it up.