From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: Re: [PATCH 04/13] ASoC: Move IO functions to soc-io.c Date: Wed, 19 Mar 2014 13:11:13 +0100 Message-ID: <53298961.8010304@metafoo.de> References: <1395129736-11938-1-git-send-email-lars@metafoo.de> <1395129736-11938-5-git-send-email-lars@metafoo.de> <20140319111057.GA11706@sirena.org.uk> <532983EF.3060704@metafoo.de> <20140319115347.GB11706@sirena.org.uk> <53298645.8000904@metafoo.de> <20140319120121.GC11706@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-242.synserver.de (smtp-out-249.synserver.de [212.40.185.249]) by alsa0.perex.cz (Postfix) with ESMTP id 1551126506D for ; Wed, 19 Mar 2014 13:10:32 +0100 (CET) In-Reply-To: <20140319120121.GC11706@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 , patches@opensource.wolfsonmicro.com, alsa-devel@alsa-project.org, Paul Handrigan , Liam Girdwood , Peter Ujfalusi , Charles Keepax , Kuninori Morimoto , Maxime Ripard List-Id: alsa-devel@alsa-project.org On 03/19/2014 01:01 PM, Mark Brown wrote: > On Wed, Mar 19, 2014 at 12:57:57PM +0100, Lars-Peter Clausen wrote: >> On 03/19/2014 12:53 PM, Mark Brown wrote: > >>> Like I've said before it is not obvious to me that removing the wrappers >>> is a win - yes, things can obtain their regmap but if enough things need >>> to do it then having a convenience wrapper which does the lookup at >>> least doesn't hurt. > >> It's more about things like snd_soc_update_bits. The wrappers will stay, but >> can as you said be made static inline functions and moved to the header. > > I'm confused - that's what I said isn't it? I think we are on the same page in regards to were we want to go. I never said that I wanted to remove the wrappers, they hide the function from the implementation which is good in two ways, the user doesn't have to deal with the details implementation and secondly we can update the implementation without having to update the users. What this series does, first moves everything related to ASoC level IO to soc-io.c and then starts cleaning it up. For now we still have to maintain some of the ASoC level IO implementation like snd_soc_update_bits() since not all drivers are using regmap yet. Once all have been converted snd_soc_component_write(...) boils down to regmap_write(component->regmap, ...), then we can move it to a header and make it static inline and remove soc-io.c.