Hi Maxime,
> There's no need to have two at the same time, they're mutually
> exclusive.
Hmmm. I don't understand it properly then...
Let's say two different compatibles in two different device tree nodes
match the same module on the same computer.
Will that module's probe() function be entered and left twice in that case?
If so, will the pdev differ?
(I know that for our current hardware it's not possible for that to happen
in the first place, but I mean in general)
> 2) make the "sun4i-codec" kernel module register two different codecs
> with two different compatibles and two different "sun4i"_codec_widget
> variables.
> 4) Copy the structure in probe and modify the copied instance
>
> I guess 2 or 4 are the two valid way of doing things.
Yeah, in v6 I did some combination of 2 and 4 (if you squint) which turned
out quite nice.
Please check whether it's safe that way (if you have the time).
Thanks,
Danny
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.