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: 848318 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yxtW31hwMz9t3m for ; Thu, 14 Dec 2017 10:41:19 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QwYT7kRr"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3yxtW26tSlzDqmD for ; Thu, 14 Dec 2017 10:41:18 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QwYT7kRr"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400e:c00::243; helo=mail-pf0-x243.google.com; envelope-from=nicoleotsuka@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QwYT7kRr"; dkim-atps=neutral Received: from mail-pf0-x243.google.com (mail-pf0-x243.google.com [IPv6:2607:f8b0:400e:c00::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3yxt1N5Vx3zDsFf for ; Thu, 14 Dec 2017 10:19:04 +1100 (AEDT) Received: by mail-pf0-x243.google.com with SMTP id j124so2265447pfc.2 for ; Wed, 13 Dec 2017 15:19:04 -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=M4KimdeEbPJrzcLmPM4K91DBEHCgUtLj3FuWgyYUG/ygzrDISNmfUeb+SvzDQv+d84 a61Bh0h8ozpleboyH+UqEM2LsoodhWmgDWX87iA95vfGyeQtjFJWpT3kCzmrf39wArRO eFQyi7xUZ3lgdvWm77TGk7q+cQAWnK5ulHCammH1Mxml9qzSvtA4GwnjyZV0ruf7M1/H niLcuEueWlFqj2cDFGVS5rGXH4WnxBfBuO6V9Hagtvxd+25hewkmzFgQlU3YUgiMDgif Ti036rmGGbJYtgh5UkTCNSadv93sMk8lFg8loSmjSxnIoYssoXN8StELem1ivspn1Tr9 V6nA== X-Gm-Message-State: AKGB3mLFDXlJwpMFVqqy/q/cAZBjIfijm1YAIWfZ7i/k12PP9suhROhi EAGfKqSHRhiyAGrc1xuxxUI= 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 Subject: [PATCH v3 08/11] ASoC: fsl_ssi: Rename scr_val to scr 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> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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