[alsa-devel] [PATCH 08/13] ASoC: Track which components have been registered with snd_soc_register_component()

Lars-Peter Clausen lars at metafoo.de
Mon Mar 24 13:07:08 CET 2014


On 03/24/2014 12:48 PM, Mark Brown wrote:
> On Mon, Mar 24, 2014 at 12:40:49PM +0100, Lars-Peter Clausen wrote:
>
>> My plan is to let it take a pointer to the component itself. I'm just not
>> too sure about the implementation details yet.
>
> The question there is why you'd ever want to only unregister a single
> thing that the device registered.  devm_ does make this a bit more
> academic but still.
>

I you probably wouldn't, but I think it makes the interface cleaner and devm 
doesn't really care whether we store a pointer to the parent device or a 
pointer to the component in the devm data.

- Lars


More information about the Alsa-devel mailing list