Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5535530rwb; Sun, 4 Dec 2022 23:57:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf5w9wrCaNyJpuBBh0Lh95kfTRLC+Lf8ab0/mVvBUObX5vVYsT5jgGn3cRemzIZmU1OIy+Ls X-Received: by 2002:a17:90b:4b4a:b0:214:6fc:31cf with SMTP id mi10-20020a17090b4b4a00b0021406fc31cfmr90791722pjb.21.1670227038031; Sun, 04 Dec 2022 23:57:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670227038; cv=none; d=google.com; s=arc-20160816; b=TUSoV4Km/g7B+ayzDqqaxXNZ65VsBGYGDqySqcvNywRhmmBlLyMA1P8Kv/BWQN6+LB NOriA8KdVhPLqh0SVdvI7dFWd1zAVi4ZRI01K/12ZvwyPB7yQRQp/yV0mL1FbVFT21x/ REUzgMstNvyjNy38MQn9l9+j9eDL+q/dkMB1MOKkIBTneYrllnxCR/HiJvGMYDUzwoq8 uTwHncLCVOtgzPKNELfGVZGzJ+m+Bzqtx1Ffm5sowhbRR4ZdJY0bqliR8l4kKbvCJSp+ CBycLz5GT1U4uT90dROKGRQJAr5A7rM9vuLLmqJdQPa/l1VN8CtJxVlXEP9LZ1HoATRa TWnA== 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 :message-id:date:subject:cc:to:from; bh=LKQzwmlc9Je57nOSY564PML9Si035KVMxQL4V616Meg=; b=S+wiYi2Ppxg3rpOJ1dWdAzdxGwtmxbcvhabNdlyeRQtAD9AJ1kXXrvSB3b/BVIZjI3 9/NvPkO/oLLnzH/KQPMHLU5bwNMycE4QGjBB73TRkDoCoVXZHpTWImsNhq5ywP3Jjmfx wt9fOPoNMhkb61tHXtyLQ6dArugCFz++0pJvtMYBFgzHyFgWy2ozywnDiHUTcgPaNtWs Xkvj+vtGUWLM73d+Zg34Kix8js8srvmTvJdOWNvVgCVLKxN2VCOHWomZlzC6JsFJ+c1I myuAyVZ331atm2PfuDC06LEfxRa2KsLdnZWLlnfmvZU1GxYl+981vAu6m8upUEINGTKL qOzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d18-20020a056a0024d200b005751327f8f7si14480517pfv.22.2022.12.04.23.57.06; Sun, 04 Dec 2022 23:57:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231615AbiLEHfa (ORCPT + 83 others); Mon, 5 Dec 2022 02:35:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231529AbiLEHf2 (ORCPT ); Mon, 5 Dec 2022 02:35:28 -0500 Received: from out30-57.freemail.mail.aliyun.com (out30-57.freemail.mail.aliyun.com [115.124.30.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBDC4FAFD for ; Sun, 4 Dec 2022 23:35:26 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=jiapeng.chong@linux.alibaba.com;NM=0;PH=DS;RN=10;SR=0;TI=SMTPD_---0VWPrFg9_1670225710; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VWPrFg9_1670225710) by smtp.aliyun-inc.com; Mon, 05 Dec 2022 15:35:24 +0800 From: Jiapeng Chong To: srinivas.kandagatla@linaro.org Cc: bgoswami@quicinc.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] ASoC: codecs: wcd-clsh: Remove the unused function Date: Mon, 5 Dec 2022 15:35:07 +0800 Message-Id: <20221205073507.36071-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function wcd_clsh_set_buck_mode() is defined in the wcd-clsh-v2.c file, but not called elsewhere, so remove this unused function. sound/soc/codecs/wcd-clsh-v2.c:133:20: warning: unused function 'wcd_clsh_enable_status'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3348 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- sound/soc/codecs/wcd-clsh-v2.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sound/soc/codecs/wcd-clsh-v2.c b/sound/soc/codecs/wcd-clsh-v2.c index 4c7ebc7fb400..a75db27e5205 100644 --- a/sound/soc/codecs/wcd-clsh-v2.c +++ b/sound/soc/codecs/wcd-clsh-v2.c @@ -130,12 +130,6 @@ static inline void wcd_enable_clsh_block(struct wcd_clsh_ctrl *ctrl, ctrl->clsh_users = 0; } -static inline bool wcd_clsh_enable_status(struct snd_soc_component *comp) -{ - return snd_soc_component_read(comp, WCD9XXX_A_CDC_CLSH_CRC) & - WCD9XXX_A_CDC_CLSH_CRC_CLK_EN_MASK; -} - static inline void wcd_clsh_set_buck_mode(struct snd_soc_component *comp, int mode) { -- 2.20.1.7.g153144c