Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp844725pxb; Tue, 14 Sep 2021 09:54:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynkRv2+zj/Aerd1FfCMbrW8FxHJOJ+jxdXAIEXMRY0akkpUybdxLt7LvR9rlW70YQUoLvy X-Received: by 2002:a6b:7212:: with SMTP id n18mr14013637ioc.175.1631638498724; Tue, 14 Sep 2021 09:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631638498; cv=none; d=google.com; s=arc-20160816; b=BGcEaKpHbgcwL6nI3DoYnUs4wfxyt2FYLGkATvN4TcdFRq0D2co9emRwy+X7T1ehdK L0+yYsJN/bUc4D4vFJDMVP4wS6O3OFPS0JlIPrGXHrNFkT30sbsOex+1D04O/QEfxU1J JuthszQ/TmoNjN1+aYUJ8AV8EO7VFrga3EskKi883/zCBvn148RJjpm4whrpA5f1NZas +T/KcyDBXyH+qmNJaP3KdGIR594Erwa+ORoYSXTPnCtDWLU4oS/YQEtWiSMBxoH+oCPk 14uT8+zvRyJZx3nYYpaZ0R5g7lYZV1XDKekB3GAdTSgp8eBlwE6HXlGqmJN0eFWveup3 q1WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gCzzPt3/u/djsUDB7B0Tqho7J20/PY/Oaga6nTwOlOM=; b=tkWzRzzee0HLBv+e689ylH06BG/x+K3KVVhCzSNZcQ6y84LJS5uVfnYDm0YgLj6219 GB0qPo/lmvGD3/4MQ4xJ5rrzLXVotogXdyvEeKRjfHSJv05lPRyXlo61k5930ZOKV172 Mh9tld7coy9nZEjJbRF/lm+MZGlO1VD9l9hDZOWmumZZ8KhuJK5E8gob+b/RL3/njPgx 5MrXZgUabzsgG2iG7nn3HG/mk8bG6SgzwyTxr/PYSD9y8iY9fcdq1WxfJ4RfE1rRtBTe +YF2qfx9kjCZpbdST1yjEjxvj/uVi5/Lt417oFLIK6QEAg/zc/yufumXFPHPWZU0PJEB KmCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=CtegOSoq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si10392896ilu.92.2021.09.14.09.54.46; Tue, 14 Sep 2021 09:54:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=CtegOSoq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230519AbhINQyq (ORCPT + 99 others); Tue, 14 Sep 2021 12:54:46 -0400 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:34246 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231146AbhINQyh (ORCPT ); Tue, 14 Sep 2021 12:54:37 -0400 Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18E6cAGU023919; Tue, 14 Sep 2021 11:52:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=gCzzPt3/u/djsUDB7B0Tqho7J20/PY/Oaga6nTwOlOM=; b=CtegOSoqZJvhLoO+M9ytB4GZNiw03HI3gpu1KsJlVxdbMoMbjuLBsuT05Ah6S4i3VSnZ zHcegmlGbSi7VFHBCBz2onDZWq1JGUWnJTngPf2ySWT1ivUjacHJCKAhXCsZIM95yFZF 1QvxZgso3R+EvsG7rUg+Fr+oxIFw3xkajPpCoTENc55TvuhiDAVBopQLj3uK3WaqPSug tsSDdY2f9Xd6wqW5wEz0p8X3B2kzLhMAQV/3128NrjRCly50zNSTHxVY5pmieGzhpX2T 2+b6iOGZetFvpCrps77dSCaWXmpB+ikHMIPsipS2OZhrrPBTc6OnhjHtzATzSUgw8Wn6 CA== Received: from ediex02.ad.cirrus.com ([87.246.76.36]) by mx0b-001ae601.pphosted.com with ESMTP id 3b29n3sa0c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 14 Sep 2021 11:52:35 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 14 Sep 2021 17:52:33 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2242.12 via Frontend Transport; Tue, 14 Sep 2021 17:52:33 +0100 Received: from vitaly-Inspiron-5415.ad.cirrus.com (unknown [198.90.238.230]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 59530B2F; Tue, 14 Sep 2021 16:52:33 +0000 (UTC) From: Vitaly Rodionov To: James Schulman , David Rhodes , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai CC: , , Subject: [PATCH 1/2] ASoC: cs42l42: Minor fix all errors reported by checkpatch.pl script Date: Tue, 14 Sep 2021 17:52:19 +0100 Message-ID: <20210914165220.752498-2-vitalyr@opensource.cirrus.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210914165220.752498-1-vitalyr@opensource.cirrus.com> References: <20210914165220.752498-1-vitalyr@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: tnt3qF4nAPsVY_vd8NV3ffiEkUKc2cEP X-Proofpoint-ORIG-GUID: tnt3qF4nAPsVY_vd8NV3ffiEkUKc2cEP X-Proofpoint-Spam-Reason: safe Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Vitaly Rodionov --- sound/soc/codecs/cs42l42.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/soc/codecs/cs42l42.c b/sound/soc/codecs/cs42l42.c index fb1e4c33e27d..ca76d907da52 100644 --- a/sound/soc/codecs/cs42l42.c +++ b/sound/soc/codecs/cs42l42.c @@ -851,7 +851,7 @@ static int cs42l42_pcm_hw_params(struct snd_pcm_substream *substream, if (params_width(params) == 24) cs42l42->bclk = (cs42l42->bclk / 3) * 4; - switch(substream->stream) { + switch (substream->stream) { case SNDRV_PCM_STREAM_CAPTURE: if (channels == 2) { val |= CS42L42_ASP_TX_CH2_AP_MASK; @@ -935,7 +935,7 @@ static int cs42l42_mute_stream(struct snd_soc_dai *dai, int mute, int stream) CS42L42_HP_ANA_BMUTE_MASK); cs42l42->stream_use &= ~(1 << stream); - if(!cs42l42->stream_use) { + if (!cs42l42->stream_use) { /* * Switch to the internal oscillator. * SCLK must remain running until after this clock switch. @@ -1015,7 +1015,7 @@ static int cs42l42_mute_stream(struct snd_soc_dai *dai, int mute, int stream) #define CS42L42_FORMATS (SNDRV_PCM_FMTBIT_S16_LE |\ SNDRV_PCM_FMTBIT_S24_LE |\ - SNDRV_PCM_FMTBIT_S32_LE ) + SNDRV_PCM_FMTBIT_S32_LE) static const struct snd_soc_dai_ops cs42l42_ops = { .startup = cs42l42_dai_startup, @@ -1492,7 +1492,7 @@ static irqreturn_t cs42l42_irq_thread(int irq, void *data) if ((~masks[5]) & irq_params_table[5].mask) { if (stickies[5] & CS42L42_HSDET_AUTO_DONE_MASK) { cs42l42_process_hs_type_detect(cs42l42); - switch(cs42l42->hs_type){ + switch (cs42l42->hs_type) { case CS42L42_PLUG_CTIA: case CS42L42_PLUG_OMTP: snd_soc_jack_report(cs42l42->jack, SND_JACK_HEADSET, @@ -1524,7 +1524,7 @@ static irqreturn_t cs42l42_irq_thread(int irq, void *data) cs42l42->plug_state = CS42L42_TS_UNPLUG; cs42l42_cancel_hs_type_detect(cs42l42); - switch(cs42l42->hs_type){ + switch (cs42l42->hs_type) { case CS42L42_PLUG_CTIA: case CS42L42_PLUG_OMTP: snd_soc_jack_report(cs42l42->jack, 0, SND_JACK_HEADSET); -- 2.25.1