From patchwork Thu Sep 20 06:21:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 10607049 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C68171508 for ; Thu, 20 Sep 2018 06:27:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B4C122AC58 for ; Thu, 20 Sep 2018 06:27:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A80442ACAA; Thu, 20 Sep 2018 06:27:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 488902AC58 for ; Thu, 20 Sep 2018 06:27:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2dwrZ4Vw9fHwwhXELk9CnpGBY/gSZiF7lYY2s9VwV3E=; b=cpsb3SbTTJMr3Z 4lCAgHIEYCuPeuyz2x78MNDQVRTzCP3OWSrQg8CA0blDgrCE/GY1SjPaijbykSz3edDzJES2vmJLs bCPzvQ7ATGQBMRSMJXHjwbCzbj0cz98e+jrCtNzEkfafALaIFTHABaQJw/jsMvOIXiQ4CcbK14FyU 4jZJEQrjI5Sygnq9XN2f0bVVe41sFDjwQOrCgysjexsGglzBKKqzmTPHgBAThaPD7e4jSBbG4pgYq 78jipXgmzyPendINV29uNnpmHmGDOnl+lOBZzdo1KuSrGU8o7yLI+4KkMTcQUnArGXEPhNI4OaFWP TYeSEfMXVC2FFc2BL2dw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g2sQS-0000aP-2v; Thu, 20 Sep 2018 06:26:56 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g2sNo-0004oy-QQ; Thu, 20 Sep 2018 06:24:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=MIME-Version:Content-Transfer-Encoding: Content-Type:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=16Rg6qa9cj7SIPUX8BLvvy1e/lUyjzdyjhr1EuX4LiU=; b=D+F1qHTaDRsqbNv6qf1boq18ES qg9txPZG0Yfo/VawEHvu1f5dpPEXyzBJlQzhM7ntHE3A1kwJkUFk27mkLBnLKNYk5an4pVbd8a78P dSQCYGAdVghQWS/UTbYkpIRIauVAJcAvpgYygDW4BRD8EKoOh5oizcX6fgCgR4W5IcyQ3MY0w3fCd bPo2uGGyrNJ7JriXZBroo4I71JW5ejttqVBjn0VDU3Cbn7cWZmJ6vpRoQSZx36PoK1ZkpLl01K93m y3lo5jIvSfMUGwWJqrVpgLafnFNhErPPVplmERsV2WC4uW3nutJejypvug2+R4dzDvu80zjCfjKKI yEWZirMQ==; Received: from szxga07-in.huawei.com ([45.249.212.35] helo=huawei.com) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g2sCO-0006ia-FI; Thu, 20 Sep 2018 06:12:26 +0000 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 502262C57BB29; Thu, 20 Sep 2018 14:12:12 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.399.0; Thu, 20 Sep 2018 14:12:06 +0800 From: Wei Yongjun To: Linus Walleij , Matthias Brugger , Sean Wang , Ryder.Lee , Zhiyong Tao Subject: [PATCH -next] pinctrl: mediatek: make symbol 'mtk_drive' static Date: Thu, 20 Sep 2018 06:21:42 +0000 Message-ID: <1537424502-23554-1-git-send-email-weiyongjun1@huawei.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180920_071224_927717_D4739EBF X-CRM114-Status: GOOD ( 10.28 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-gpio@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-mediatek@lists.infradead.org, Wei Yongjun , linux-arm-kernel@lists.infradead.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes the following sparse warning: drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:37:29: warning: symbol 'mtk_drive' was not declared. Should it be static? Signed-off-by: Wei Yongjun Acked-by: Sean Wang --- drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c index 167ebf4..4a9e0d4 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c @@ -34,7 +34,7 @@ struct mtk_drive_desc { }; /* The groups of drive strength */ -const struct mtk_drive_desc mtk_drive[] = { +static const struct mtk_drive_desc mtk_drive[] = { [DRV_GRP0] = { 4, 16, 4, 1 }, [DRV_GRP1] = { 4, 16, 4, 2 }, [DRV_GRP2] = { 2, 8, 2, 1 },