Re: [PATCH] WIP: drivers/base: Add virtual_device_create()
From: Greg Kroah-Hartman
Date: Sat Feb 01 2025 - 03:33:42 EST
On Thu, Jan 30, 2025 at 04:58:50PM -0500, Lyude Paul wrote:
> (FWIW: after posting this I realized I will need to split this API up a bit
> more anyway so that we can also do init/register in separate steps, since I
> realized rust will need this so we can store a reference to the device like we
> allow for normal device probes)
Do you always need to do init/register in 2 steps in rust code? Or can
you do it all in a single call? I'd prefer a single one just to make
the interface simpler overall, but if you all can't do that, I can keep
it in two, just seems wasteful.
thanks,
greg k-h