Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3114598ybl; Mon, 19 Aug 2019 12:27:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUEiAzpdMTNS0TxJXS3W8mu/g+VIpYdfdKFRNcwGDUWLFgdMTnkEBUsE8DwgWjhZ4nK/Kf X-Received: by 2002:a63:b10f:: with SMTP id r15mr21165107pgf.230.1566242829267; Mon, 19 Aug 2019 12:27:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566242829; cv=none; d=google.com; s=arc-20160816; b=S3NQZOidh5CcETYjdgRNJ+IS4D0mIk+b36unj08TqU50ayB4HO0eoguSdE7PsGYZvH L3x7rHY7WDxZcsL5UDfam+/eht7D0jI0s7T60CDgaA/+UQ84l08CypdLIh9Yfn2L/UQc OjFF95VQ7NmSlACdT87nv81oZdLw4JAUOO2XeHyDBCum+uQdIBk2mq77nQLUJbkFXP8G v8eMsZLZfB6eeYMgLtxy4C1uh2P1SOAgPynOxS4KpipFp9eElk7rtWX1DtX7SC4RQn15 E5DSCaxcZwYnTY9cG2e6RyLQS1stFb/gmwEQ1V+9ucgSLXrBHg2DNOP6pNXQ0P7F9NIO dITg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lrhYze6Q0n27q6uSmcR73808y+mySI40r0PQanocNco=; b=Q6COJKLHfbsFWzP+Oo5wKm99fhis3KeXDxc9Ki/cxGDIVyOtpmN59xsBBcFkQkpEkE zXumwcBWyP+ma390YAMu4nfkdjiqEvxDTbqWfTjpaqxlpqsfHpX2kz29HOclb2NbS3Xt LIpFs/MblI07MNDDbyX2U+8L9cf/VHZ8PMjBnyv4uXsimqa5z3ah5S0Z8sFM/bxq9QOA z0ySYziVO+z+lV1UbHcIwco+r/D5HgleEw7QM89gI5C2W2OOndSf4wnC3+uKS5QwNpeq Tid4rRqlDBS9DTC9vYjJ9BlqZasLw1aYK+q6qiki8d1+G8dSbZve2pWUM1htxSezHymc 9NSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=puQPRqod; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o31si10496005pgb.579.2019.08.19.12.26.54; Mon, 19 Aug 2019 12:27:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=puQPRqod; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728526AbfHSTZn (ORCPT + 99 others); Mon, 19 Aug 2019 15:25:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:41138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728337AbfHSTZl (ORCPT ); Mon, 19 Aug 2019 15:25:41 -0400 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E196322CEC; Mon, 19 Aug 2019 19:25:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566242741; bh=yQu3KA9uqkzoaxptkeyVKeN20q0tJpYXRmR37E58l3E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=puQPRqod9ydcPwLIv4SHOwPmIEjObuVGpVdDPed2UhUb8ESnQCtHpKGwr6g/LNbup 2ysPweAL8ia8DX9Ew0T6NA73fd78Zo7cWCJXlHZt0N+xlV4EC4DiBz0cnsqLCEDBBF c1hu5ZrZsRV8VO7GSp4STN6dONOxi00YHEJPoslQ= From: Maxime Ripard To: Chen-Yu Tsai , Maxime Ripard , lgirdwood@gmail.com, broonie@kernel.org Cc: alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, codekipper@gmail.com, linux-kernel@vger.kernel.org Subject: [PATCH 03/21] ASoC: sun4i-i2s: Replace call to params_channels by local variable Date: Mon, 19 Aug 2019 21:25:10 +0200 Message-Id: X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Ripard The sun4i_i2s_hw_params already has a variable holding the value returned by params_channels, so let's just use that variable instead of calling params_channels multiple times. Signed-off-by: Maxime Ripard --- sound/soc/sunxi/sun4i-i2s.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c index 1ed7670eae9c..ac84c29224eb 100644 --- a/sound/soc/sunxi/sun4i-i2s.c +++ b/sound/soc/sunxi/sun4i-i2s.c @@ -411,10 +411,9 @@ static int sun4i_i2s_hw_params(struct snd_pcm_substream *substream, /* Configure the channels */ regmap_field_write(i2s->field_txchansel, - SUN4I_I2S_CHAN_SEL(params_channels(params))); - + SUN4I_I2S_CHAN_SEL(channels)); regmap_field_write(i2s->field_rxchansel, - SUN4I_I2S_CHAN_SEL(params_channels(params))); + SUN4I_I2S_CHAN_SEL(channels)); if (i2s->variant->has_chsel_tx_chen) regmap_update_bits(i2s->regmap, SUN8I_I2S_TX_CHAN_SEL_REG, -- git-series 0.9.1