Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752656AbeADTny (ORCPT + 1 other); Thu, 4 Jan 2018 14:43:54 -0500 Received: from mail-pl0-f52.google.com ([209.85.160.52]:36516 "EHLO mail-pl0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750990AbeADTnw (ORCPT ); Thu, 4 Jan 2018 14:43:52 -0500 X-Google-Smtp-Source: ACJfBou7DqOZDNe9Hc48F05pRT1coAtr1hSlxKwEpc02pOvNEll5EDJfTIIQ0AzlpXLKBzm8mpIUqg== Date: Thu, 4 Jan 2018 11:44:06 -0800 From: Nicolin Chen To: "Maciej S. Szmigiero" Cc: timur@tabi.org, broonie@kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, alsa-devel@alsa-project.org, lgirdwood@gmail.com, fabio.estevam@nxp.com, caleb@crome.org, arnaud.mouiche@invoxia.com, lukma@denx.de, kernel@pengutronix.de Subject: Re: [PATCH v1 05/15] ASoC: fsl_ssi: Clean up helper functions of trigger() Message-ID: <20180104194405.GD27975@Asurada-Nvidia> References: <1513702819-42310-1-git-send-email-nicoleotsuka@gmail.com> <1513702819-42310-6-git-send-email-nicoleotsuka@gmail.com> <59aa58b7-aeda-ef87-e150-9fec9c6229ae@maciej.szmigiero.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <59aa58b7-aeda-ef87-e150-9fec9c6229ae@maciej.szmigiero.name> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Mon, Jan 01, 2018 at 10:59:30PM +0100, Maciej S. Szmigiero wrote: > > +static void fsl_ssi_config_enable(struct fsl_ssi *ssi, bool tx) > > + srcr = vals[tx].srcr; > > + stcr = vals[tx].stcr; > > + sier = vals[tx].sier; > > Implicit assumption here that RX == 0, TX == 1, as in the 03 patch. Could replace it with "bool dir" as well. Thanks for the review.