From patchwork Wed Dec 9 10:32:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Keeping X-Patchwork-Id: 7807231 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8E49E9FC62 for ; Wed, 9 Dec 2015 10:33:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AF0A1204B0 for ; Wed, 9 Dec 2015 10:33:42 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 5657720462 for ; Wed, 9 Dec 2015 10:33:41 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5B0FA260513; Wed, 9 Dec 2015 11:33:40 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, NO_DNS_FOR_FROM,RCVD_IN_DNSWL_LOW,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id C1EAB260423; Wed, 9 Dec 2015 11:33: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 B627A260429; Wed, 9 Dec 2015 11:33:13 +0100 (CET) Received: from metanate.com (dougal.metanate.com [90.155.101.14]) by alsa0.perex.cz (Postfix) with ESMTP id 309DF260415 for ; Wed, 9 Dec 2015 11:33:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=metanate.com; s=stronger; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=zvLv6Mu1Y/FYDtQCmHrerT0k7oXUN7wPcHqxAR9PKBw=; b=rh4F1uIU5TsKF4sF4zDhXUYMfcHPdB1Mnh8BxbFJGa6r/1Gj2yB4JNgCYbAWCd19Y3t/kncJTFq03xdV95VUbPS6k6CBZpmzg5Qpplbvzx+lWt5Wsp8stVSDlh/0+by+/Ut/m3OKVnjeHernS4k/pyRchUX7oZ7RaYo43EyJ4S5yRv1EywgPSA/zSAOOUyX69lk2ht/WAfgQXlOiSKp9xpaB8w4/v2Cty8p52et7vXSJbbTOFxgzzV7wOZ63vXhTVx3NZSLDAFXY9EZYyd8JfW2BHfxdnhwr4Mt+tAh+N8/IiOUU7MPCx09XUDyMS9MmdRSpOOsjaCYMfx6R1uJXPg==; Received: from brian ([192.168.88.1] helo=leela.metanate.com) by shrek.metanate.com with esmtpsa (TLSv1.2:AES128-SHA256:128) (Exim 4.83_RC2) (envelope-from ) id 1a6c3B-0000PN-7J; Wed, 09 Dec 2015 10:32:45 +0000 From: John Keeping To: linux-rockchip@lists.infradead.org Date: Wed, 9 Dec 2015 10:32:27 +0000 Message-Id: <1449657147-26959-2-git-send-email-john@metanate.com> X-Mailer: git-send-email 2.6.3.462.gbe2c914 In-Reply-To: <1449657147-26959-1-git-send-email-john@metanate.com> References: <1449657147-26959-1-git-send-email-john@metanate.com> Cc: alsa-devel@alsa-project.org, Heiko Stuebner , linux-kernel@vger.kernel.org, Takashi Iwai , Liam Girdwood , Mark Brown , John Keeping , linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH 2/2] ASoC: rockchip: i2s: remove unused variables 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 The previous commit removed the only use of these variables. Signed-off-by: John Keeping --- sound/soc/rockchip/rockchip_i2s.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c index acc6225..8b0a588 100644 --- a/sound/soc/rockchip/rockchip_i2s.c +++ b/sound/soc/rockchip/rockchip_i2s.c @@ -34,13 +34,6 @@ struct rk_i2s_dev { struct regmap *regmap; -/* - * Used to indicate the tx/rx status. - * I2S controller hopes to start the tx and rx together, - * also to stop them when they are both try to stop. -*/ - bool tx_start; - bool rx_start; bool is_master_mode; }; @@ -84,11 +77,7 @@ static void rockchip_snd_txctrl(struct rk_i2s_dev *i2s, int on) regmap_update_bits(i2s->regmap, I2S_XFER, I2S_XFER_TXS_START, I2S_XFER_TXS_START); - - i2s->tx_start = true; } else { - i2s->tx_start = false; - regmap_update_bits(i2s->regmap, I2S_DMACR, I2S_DMACR_TDE_ENABLE, I2S_DMACR_TDE_DISABLE); @@ -126,11 +115,7 @@ static void rockchip_snd_rxctrl(struct rk_i2s_dev *i2s, int on) regmap_update_bits(i2s->regmap, I2S_XFER, I2S_XFER_RXS_START, I2S_XFER_RXS_START); - - i2s->rx_start = true; } else { - i2s->rx_start = false; - regmap_update_bits(i2s->regmap, I2S_DMACR, I2S_DMACR_RDE_ENABLE, I2S_DMACR_RDE_DISABLE);