From patchwork Tue Jul 25 13:54:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 125653 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2509555vqg; Tue, 25 Jul 2023 07:27:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlHEKr9fR+aGa1SFzIGe5c3+we8zNCbD08c2/dOUACp1C86TLQ2jSUbDCKTxYcuCkzz4r5Gg X-Received: by 2002:a17:903:2581:b0:1bb:9e29:1468 with SMTP id jb1-20020a170903258100b001bb9e291468mr4534574plb.28.1690295224592; Tue, 25 Jul 2023 07:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690295224; cv=none; d=google.com; s=arc-20160816; b=Oc6XXrF5h+l23shLG+tR4PCOB0Jode8T2hcBoDjICCJRpx1ExzwtFecEnUQ1gv9oie WMkD2RkhMlpEQpWFCvmPQhFmiL59IhEjpJnbqzLwjBJKaEqn1CC7gL5miZWltrKNSdjY mOoRhTADAd5xQWTfGZyDFO1F88EEp0tb/0Qoso91we5mO6D0DvDit+uF96BlFEAALrAG q/pm8+BoiJX0l5A4aGJctkcl2U02GRhTN+nhdiSnqMesmxoPMTi2WCfXq4wsEGsEMVeF 3a1gtCSUpXnWMLl672ujQpu/XfLPD4mEGldi362WLzKYmByd1VwQpATkBiFo5POmykmq YjAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=RhkbyDfSvNPxXp5sj8725UtHWutCiDnBhbBe3mkyaC4=; fh=GDDxOw7YSUKrMBP5O70WU1SHR/xU4pXvZ9atbdJqa+Y=; b=z42V6m2D53LVqF6r+w+ZOt/eK6EVHfYUMmZ1Hqm53bJhwgJ9U+Dg4Zg/yfsKVR7EVt w7DjQGMbp0C21A/qCDu4xor7BEuoShLP4+i6T/JFh3hj9RdrTHmbAaoVP8cBvnKWMzTO LxGbF5dJNr3+QwCMod+qigE97xxFWr5dl/5G/xYzT6zpSmxil6wvr8e/I/u6cOyuLTVE VepcnwCgD+4EPjxHPGLeoQ+bGRsVdN7Je9bLDXgHkziGYGUkVhoBYQLUKBkSeocvgB2p bfEHUGOE4cDp9ZZXWXlSdcEM5nlWLh95mFTNu0eK9s0AvVmhwKOex/VtpV5xpg9e9zxv QUyA== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u8-20020a1709026e0800b001b873b80747si10951077plk.39.2023.07.25.07.26.51; Tue, 25 Jul 2023 07:27:04 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229929AbjGYNzc (ORCPT + 99 others); Tue, 25 Jul 2023 09:55:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229897AbjGYNza (ORCPT ); Tue, 25 Jul 2023 09:55:30 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04065212E; Tue, 25 Jul 2023 06:55:02 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4R9JQc5ypSzrRx4; Tue, 25 Jul 2023 21:53:28 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 25 Jul 2023 21:54:21 +0800 From: YueHaibing To: , CC: , Subject: [PATCH -next] spi: fsl: Remove unused extern declarations Date: Tue, 25 Jul 2023 21:54:11 +0800 Message-ID: <20230725135411.21152-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772403005336825845 X-GMAIL-MSGID: 1772403005336825845 commit b36ece832512 ("spi/mpc8xxx: refactor the common code for SPI/eSPI controller") left mpc8xxx_spi_bufs() behind. And since commit 3c5395b66ff6 ("spi: fsl-(e)spi: simplify cleanup code") mpc8xxx_spi_remove() is not used anymore. Signed-off-by: YueHaibing --- drivers/spi/spi-fsl-lib.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/spi/spi-fsl-lib.h b/drivers/spi/spi-fsl-lib.h index 015a1abb6a84..50a07f984b23 100644 --- a/drivers/spi/spi-fsl-lib.h +++ b/drivers/spi/spi-fsl-lib.h @@ -103,12 +103,9 @@ extern void mpc8xxx_spi_rx_buf_u32(u32 data, struct mpc8xxx_spi *mpc8xxx_spi); extern struct mpc8xxx_spi_probe_info *to_of_pinfo( struct fsl_spi_platform_data *pdata); -extern int mpc8xxx_spi_bufs(struct mpc8xxx_spi *mspi, - struct spi_transfer *t, unsigned int len); extern const char *mpc8xxx_spi_strmode(unsigned int flags); extern void mpc8xxx_spi_probe(struct device *dev, struct resource *mem, unsigned int irq); -extern int mpc8xxx_spi_remove(struct device *dev); extern int of_mpc8xxx_spi_probe(struct platform_device *ofdev); #endif /* __SPI_FSL_LIB_H__ */