Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp463801imm; Wed, 29 Aug 2018 04:33:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbB5AsBVLJBFkaB9EPT2HVsYwg5Rg/G8Bx/vjKT2z5M5sx0qrKs3sRfwqwNMjKYlbwYIXAt X-Received: by 2002:a62:858c:: with SMTP id m12-v6mr5602352pfk.173.1535542405980; Wed, 29 Aug 2018 04:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535542405; cv=none; d=google.com; s=arc-20160816; b=GPJbQ+9ttx27tHicyV1RF+BfISFAgRC7WjNJJZomNMDxI42dEiF2A+HCCUkdM8YbDz 1OhsMOZsTwtkAIJ5+HoX+UVBljDkPagOXtcjwMZySLQkyMkb+/2oYQmP7aMfVmOfWSsf vyc3NZclWNXs5bzckhEX5TuywewOm/13VWvJlWsbb7mrtT4EGDXWun8Xt+6beIywDQt0 iY3VVA4GxNo9lGpXEtqAIls29MApqc8elCUkpnhGZqlxXZmW6aHFMZW5B0EJZrfnHvHw Eqx3xdzZ8s8GYZnQQoiqp4UkiuUnVUe62RRM2HSYXm6A1NvMLiLUfZiCG4Ut7Vwg37AB SMLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=pEp0M+xWHMOY2ZfrKJ0OzbmwQ5x/wfV12zVijqBPuaY=; b=XGPUdCKaOjUxJaNhEt8tUiD5Kw6iwoYpIlhJNXPtNEG4cKrzoytF9nMi60SJsjchTJ MDFRcTV7tIBb5NSxZ7vz61mvcj3OqAYsuHyV0ba+A8YtoIPflEyc31hnHgqVjhozwtnE bVuOPs2DzTHJvCK+uIk0Y/9iluJzRDkJ8uaaCwJk8g1IqU5bGpWpzssoLGorf5dfVsiL MncUeah3lN0aYyZa9WS1JDVupcNGs/NbUr8kq72OlYXZGJlsk1JVWuVC9KsG0U3SQP1M PXwZ1DAIStjN46NwkB3+DOlaS9haI4vJ+4B3dU5Laew1iBsU21J9VCaDuWJST9gpH01N xAEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=RLOeT1fL; 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=fail (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 h8-v6si3882292pli.14.2018.08.29.04.33.11; Wed, 29 Aug 2018 04:33:25 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=RLOeT1fL; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728284AbeH2P2K (ORCPT + 99 others); Wed, 29 Aug 2018 11:28:10 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:56762 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727204AbeH2P2J (ORCPT ); Wed, 29 Aug 2018 11:28:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=pEp0M+xWHMOY2ZfrKJ0OzbmwQ5x/wfV12zVijqBPuaY=; b=RLOeT1fLlPGO l1jfBwmLoXmOgtZPOG7uIEF3d1BbpQACVMVYfIyYBq5vHy0MfIKxqUDFGPQ83TJkXoBgnaZ+N+0WJ VVU++PRI7QJLxBCzn7C3izXWuwVVOPQVvzk6NBcBfCYxOtQ7+dfGzPgaWRJ3mUgHT3USAsAirUiWX ETwjY=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1fuyh5-0008UK-NA; Wed, 29 Aug 2018 11:31:27 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 6CD381124859; Wed, 29 Aug 2018 12:31:27 +0100 (BST) From: Mark Brown To: Kirill Marinushkin Cc: Mark Brown , Mark Brown , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Takashi Iwai , Liam Girdwood , Peter Ujfalusi , Vishwas A Deshpande , M R Swami Reddy , Kevin Cernekee , alsa-devel@alsa-project.org Subject: Applied "ASoC: pcm3060: Improve legibility of if-statements" to the asoc tree In-Reply-To: <20180828214231.10164-2-kmarinushkin@birdec.tech> Message-Id: <20180829113127.6CD381124859@debutante.sirena.org.uk> Date: Wed, 29 Aug 2018 12:31:27 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: pcm3060: Improve legibility of if-statements has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 080aaf10892eec4b359126473e582f62ebb09496 Mon Sep 17 00:00:00 2001 From: Kirill Marinushkin Date: Tue, 28 Aug 2018 23:42:31 +0200 Subject: [PATCH] ASoC: pcm3060: Improve legibility of if-statements Modified some if-statements to make them more clear Signed-off-by: Kirill Marinushkin Signed-off-by: Mark Brown --- sound/soc/codecs/pcm3060.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/pcm3060.c b/sound/soc/codecs/pcm3060.c index 5b9718fa766d..494d9d662be8 100644 --- a/sound/soc/codecs/pcm3060.c +++ b/sound/soc/codecs/pcm3060.c @@ -68,7 +68,10 @@ static int pcm3060_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) return -EINVAL; } - reg = (dai->id == PCM3060_DAI_ID_DAC ? PCM3060_REG67 : PCM3060_REG72); + if (dai->id == PCM3060_DAI_ID_DAC) + reg = PCM3060_REG67; + else + reg = PCM3060_REG72; regmap_update_bits(priv->regmap, reg, PCM3060_REG_MASK_FMT, val); @@ -124,7 +127,10 @@ static int pcm3060_hw_params(struct snd_pcm_substream *substream, } val_ready: - reg = (dai->id == PCM3060_DAI_ID_DAC ? PCM3060_REG67 : PCM3060_REG72); + if (dai->id == PCM3060_DAI_ID_DAC) + reg = PCM3060_REG67; + else + reg = PCM3060_REG72; regmap_update_bits(priv->regmap, reg, PCM3060_REG_MASK_MS, val); -- 2.18.0