Re: [PATCH v2 1/4] rust: device: implement Device::parent()
From: Greg KH
Date: Thu Mar 20 2025 - 21:42:26 EST
On Thu, Mar 20, 2025 at 11:27:43PM +0100, Danilo Krummrich wrote:
> Device::parent() returns a reference to the device' parent device, if
> any.
Ok, but why? You don't use it in this series, or did I miss it?
A driver shouldn't care about the parent of a device, as it shouldn't
really know what it is. So what is this needed for?
thanks,
greg k-h