Re: [PATCH V6 04/15] rust: device: Add few helpers
From: Viresh Kumar
Date: Thu Jan 09 2025 - 00:15:03 EST
On 08-01-25, 12:52, Greg Kroah-Hartman wrote:
> How about fixing the reference count of the cpu device? :)
I would try my best to avoid getting into that trap :)
> But seriously, this is NOT a generic 'struct device' thing, it is a 'cpu
> device' thing. So putting this function in device.rs is probably not
> the proper place for it at all, sorry. Why not put it in the cpu.rs
> file instead?
I can do that, so it will be a standalone helper function in cpu.rs and not a
method in an `impl` block.
--
viresh