Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1799865rwb; Wed, 26 Jul 2023 19:49:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlHbrn2opW9P6tqqaT7bw36G0OIxUBJlIqJ4DuV6JJWdmZyBb1teB19wXg8iYBJTfFJ5RDum X-Received: by 2002:a17:906:73d5:b0:99b:d96f:ffcf with SMTP id n21-20020a17090673d500b0099bd96fffcfmr346854ejl.44.1690426174608; Wed, 26 Jul 2023 19:49:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690426174; cv=none; d=google.com; s=arc-20160816; b=zKYw/sbN3ndVovMCdNfpxWscmK7fz5/L9u7ghNUf9MkNdhqN3mkWgEvwrqva1ckZX7 KpWXDlqKsUax8E0j2FPnBxDX747VH1ZwqP7+K4yRGR3Dz2rOfRzuZ5HLN+3N1ao2AWQG nXC3ovNKpCY2br+UaW48gvLUZ0WRu35xPPsQfMtezr3woiA9Cr3/SJ+EJskCFW34PcCo VUUyOFvxSHuvyxpQeZajP7GMwZeKQwtBDb2bXRZ3S/cppPSLS0KWnGQ4uWnCs7MnWjBL +vbCJbaILVaPXfyniz+2Siyk8em8HY5KvwllKoEE1DEzT7UFiaBpTobG5iNFkA5Pk/Wo QTzQ== 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=17xYc+oTc7c/+mYF8VQaITMkPTK6e/dn477KigfOO7s=; fh=Al3OgZtPRHBOyaC893h9cjL/sTjxMWVrDdij3R4eQ7s=; b=vG/MhUQQDilwPeXtpqv9d0quyuES2qC+PBTb3g9CJZZhJS2CHcqqhClYBZ/7S9Ypxi /tpPM12fWYUvxFPIok+8U8OknceHz5PKRTWX7CptupAaaWUr+8Y+qrcCzrqZhVb6NrUb jkKIlXfAgJlWZihp6wWOV1x6j2ymUN6LCbS2uJp+gAaj7nJ1QfXdLmO7ExPjKag7e4rJ 3I6xfW0CBD33aWIpWLOOd1YXgVb9gSeBtTfiAQllfIyLYo73GxE7/NE6k2EfBtCMC7WO Dr/SDnDa8UhmCa+AOATMdybRCg6LvPt5J4tBE/kJUgrefdlPAUNx6PsLYPH66qAeDnNE sDZQ== 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 p2-20020a170906838200b009938248d370si280824ejx.2.2023.07.26.19.49.10; Wed, 26 Jul 2023 19:49:34 -0700 (PDT) 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 S229871AbjG0CQx (ORCPT + 99 others); Wed, 26 Jul 2023 22:16:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229639AbjG0CQw (ORCPT ); Wed, 26 Jul 2023 22:16:52 -0400 Received: from out30-112.freemail.mail.aliyun.com (out30-112.freemail.mail.aliyun.com [115.124.30.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D00371BDA for ; Wed, 26 Jul 2023 19:16:50 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0VoIcwVc_1690424194; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VoIcwVc_1690424194) by smtp.aliyun-inc.com; Thu, 27 Jul 2023 10:16:46 +0800 From: Jiapeng Chong To: oder_chiou@realtek.com Cc: 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: rt1017: Remove unused function Date: Thu, 27 Jul 2023 10:16:32 +0800 Message-Id: <20230727021632.88912-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,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 are defined in the rt1017-sdca-sdw.h file, but not called elsewhere, so delete the unused functions. sound/soc/codecs/rt1017-sdca-sdw.h:183:33: warning: ‘rt1017_sdca_mbq_defaults’ defined but not used. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5998 Signed-off-by: Jiapeng Chong --- sound/soc/codecs/rt1017-sdca-sdw.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sound/soc/codecs/rt1017-sdca-sdw.h b/sound/soc/codecs/rt1017-sdca-sdw.h index 5968b9a7d124..4932b5dbe3c0 100644 --- a/sound/soc/codecs/rt1017-sdca-sdw.h +++ b/sound/soc/codecs/rt1017-sdca-sdw.h @@ -180,9 +180,4 @@ static const struct reg_default rt1017_sdca_reg_defaults[] = { RT1017_SDCA_CTL_REQ_POWER_STATE, 0), 0x03 }, }; -static const struct reg_default rt1017_sdca_mbq_defaults[] = { - { SDW_SDCA_CTL(FUNC_NUM_SMART_AMP, RT1017_SDCA_ENT_FU, - RT1017_SDCA_CTL_FU_VOLUME, 0x01), 0x00 }, -}; - #endif /* __RT1017_SDW_H__ */ -- 2.20.1.7.g153144c