From patchwork Wed Dec 13 23:18:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolin Chen X-Patchwork-Id: 10111089 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E119C60352 for ; Wed, 13 Dec 2017 23:21:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3BD929728 for ; Wed, 13 Dec 2017 23:21:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C894C29745; Wed, 13 Dec 2017 23:21:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25D8829728 for ; Wed, 13 Dec 2017 23:21:16 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 1C6D42679A6; Thu, 14 Dec 2017 00:19:14 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id B5395267995; Thu, 14 Dec 2017 00:19:10 +0100 (CET) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by alsa0.perex.cz (Postfix) with ESMTP id EE517267973 for ; Thu, 14 Dec 2017 00:19:03 +0100 (CET) Received: by mail-pf0-f193.google.com with SMTP id a90so2269807pfk.1 for ; Wed, 13 Dec 2017 15:19:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fG5268VZQupzDcChIV4BJ5sfL0avmsNpt8iy+cfgSpA=; b=QwYT7kRrImlxs9mvsg04rdDLbgiAIFDI1GkeVaTTusHpjShJqpgQa2pKM4Z4qrSGBI pfMaHtTV+NSlTtERiH2BrbI3WvL16a9e7zcYA692bA+qgvF0OtDxfHUPeHIRjE4b6Ivq 6YqCHsFYwpnHnq16Bj+392I2s4Du5quHGxvWGoeDSBKDZrGhQ/deZIkGZk2+V9BvuG+5 FRRZK5Efr1Zki0zrr6qUHO991ef+OWi0U7ew2FAeaTj89o2N1K3IdTgYD6lxer4ltHll qfVfAIhS85sjtfxjP3yU2TxhZQM8hb8PEM1HiYeaJtRS4NmmxAjnShYJo4SRp2Pbklok HN6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fG5268VZQupzDcChIV4BJ5sfL0avmsNpt8iy+cfgSpA=; b=rrCpXL2SOd+5opNt7O6JGyamRGsu/Oa1aGLRO1WRJ91dPwVvqw5jWV0fGNfhz0uixw 1Ik+s+K/7ouFJh1vPVMEAjYaIAKi2zk8gEjvqekW1OkWsxDj/jKRMqjYek0IvFpd4Dq3 5e7hCtiesiSE+KN1PnGsElOONYJr6Lm/qw4eViRXb8CF072cJCzySfMLMZ5Fs82A0pFP l9QlWxtgH881gjEncCGREK9MR1rhwwGGHxkJLuPG+6orwpas50t3V/jpXleQHPs6lI4g DxRwB7dAWYk+H4ZohB5LZlXNKL8Et3BT9p7WcYKdJ0wbH1TZnT7+B2wJ/Ea15mpVAMRl l+Ag== X-Gm-Message-State: AKGB3mJM0pIuFe7MJl8E9NwCWfD6eJ5K6veFtlActq+3D1OX5S9HVivC 7mPtwEbyJvJOdKFaYI/YBDI= X-Google-Smtp-Source: ACJfBou6tKtbHA9C0sWO627Vuj32Q7Rgc7TQZCb5/hbMIgTP5gu5kLB6hQu3z+G7R7rTe0I3wOcdiw== X-Received: by 10.98.18.157 with SMTP id 29mr7617750pfs.84.1513207142630; Wed, 13 Dec 2017 15:19:02 -0800 (PST) Received: from Asurada-Nvidia.nvidia.com (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id z2sm4232483pgu.17.2017.12.13.15.19.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Dec 2017 15:19:02 -0800 (PST) From: Nicolin Chen To: broonie@kernel.org Date: Wed, 13 Dec 2017 15:18:25 -0800 Message-Id: <1513207108-30430-9-git-send-email-nicoleotsuka@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1513207108-30430-1-git-send-email-nicoleotsuka@gmail.com> References: <1513207108-30430-1-git-send-email-nicoleotsuka@gmail.com> Cc: mail@maciej.szmigiero.name, timur@tabi.org, kernel@pengutronix.de, lgirdwood@gmail.com, alsa-devel@alsa-project.org, caleb@crome.org, linux-kernel@vger.kernel.org, arnaud.mouiche@invoxia.com, lukma@denx.de, fabio.estevam@nxp.com, linuxppc-dev@lists.ozlabs.org Subject: [alsa-devel] [PATCH v3 08/11] ASoC: fsl_ssi: Rename scr_val to scr X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Simplify the variable name. This reduces one over-80-character line. Signed-off-by: Nicolin Chen Tested-by: Maciej S. Szmigiero Reviewed-by: Maciej S. Szmigiero --- sound/soc/fsl/fsl_ssi.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 83d6e3d..08258c4 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -448,12 +448,12 @@ static void fsl_ssi_config(struct fsl_ssi *ssi, bool enable, struct regmap *regs = ssi->regs; struct fsl_ssi_reg_val *avals; int nr_active_streams; - u32 scr_val; + u32 scr; int keep_active; - regmap_read(regs, REG_SSI_SCR, &scr_val); + regmap_read(regs, REG_SSI_SCR, &scr); - nr_active_streams = !!(scr_val & SSI_SCR_TE) + !!(scr_val & SSI_SCR_RE); + nr_active_streams = !!(scr & SSI_SCR_TE) + !!(scr & SSI_SCR_RE); if (nr_active_streams - 1 > 0) keep_active = 1; @@ -795,11 +795,11 @@ static int fsl_ssi_hw_params(struct snd_pcm_substream *substream, unsigned int sample_size = params_width(hw_params); u32 wl = SSI_SxCCR_WL(sample_size); int ret; - u32 scr_val; + u32 scr; int enabled; - regmap_read(regs, REG_SSI_SCR, &scr_val); - enabled = scr_val & SSI_SCR_SSIEN; + regmap_read(regs, REG_SSI_SCR, &scr); + enabled = scr & SSI_SCR_SSIEN; /* * SSI is properly configured if it is enabled and running in