From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: Re: [PATCH 08/13] ASoC: Track which components have been registered with snd_soc_register_component() Date: Mon, 24 Mar 2014 13:07:08 +0100 Message-ID: <53301FEC.6090507@metafoo.de> References: <1395129736-11938-1-git-send-email-lars@metafoo.de> <1395129736-11938-9-git-send-email-lars@metafoo.de> <20140324111805.GI1665@opensource.wolfsonmicro.com> <533019C1.6090402@metafoo.de> <20140324114837.GJ2269@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp-out-085.synserver.de (smtp-out-091.synserver.de [212.40.185.91]) by alsa0.perex.cz (Postfix) with ESMTP id F3580261A38 for ; Mon, 24 Mar 2014 13:06:25 +0100 (CET) In-Reply-To: <20140324114837.GJ2269@sirena.org.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: Brian Austin , alsa-devel@alsa-project.org, patches@opensource.wolfsonmicro.com, Liam Girdwood , Paul Handrigan , Peter Ujfalusi , Charles Keepax , Kuninori Morimoto , Maxime Ripard List-Id: alsa-devel@alsa-project.org 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