From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: Re: [PATCH 2/3] ASoC: codecs: adau1701: switch to direct regmap API usage Date: Fri, 21 Jun 2013 09:28:12 +0200 Message-ID: <51C4008C.20001@metafoo.de> References: <1371749397-32238-1-git-send-email-zonque@gmail.com> <1371749397-32238-3-git-send-email-zonque@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp-out-182.synserver.de (smtp-out-182.synserver.de [212.40.185.182]) by alsa0.perex.cz (Postfix) with ESMTP id 67F802654C5 for ; Fri, 21 Jun 2013 09:27:53 +0200 (CEST) In-Reply-To: <1371749397-32238-3-git-send-email-zonque@gmail.com> 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: Daniel Mack Cc: alsa-devel@alsa-project.org, broonie@kernel.org List-Id: alsa-devel@alsa-project.org On 06/20/2013 07:29 PM, Daniel Mack wrote: > The hardware I/O has to be open-coded due to registers of unequal sizes. > Other than that, the transition is straight forward. > > Signed-off-by: Daniel Mack Acked-by: Lars-Peter Clausen Thanks. One minor nitpick though. > --- [...] > + msgs[0].addr = client->addr; > + msgs[0].len = sizeof(send_buf); > + msgs[0].buf = send_buf; > + msgs[0].flags = 0; > + > + msgs[1].addr = client->addr; > + msgs[1].len = size; > + msgs[1].buf = recv_buf; > + msgs[1].flags = I2C_M_RD | I2C_M_STOP; We don't need to set a explicit stop flag for the last message in the transfer.