From patchwork Thu Jul 18 17:08:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 1133779 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="i6Y9+mBE"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45qLF14zqYz9s3l for ; Fri, 19 Jul 2019 03:08:21 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 41D31C21F75; Thu, 18 Jul 2019 17:08:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 7DC4DC21F01; Thu, 18 Jul 2019 17:08:15 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5589AC21EBB; Thu, 18 Jul 2019 17:08:14 +0000 (UTC) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by lists.denx.de (Postfix) with ESMTPS id EEF42C21DED for ; Thu, 18 Jul 2019 17:08:13 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id r1so29495323wrl.7 for ; Thu, 18 Jul 2019 10:08:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OyRnsJVRruf/m80FrGKTRZVww4MQNDOq9V0LpFlFr0M=; b=i6Y9+mBEnTP8xBwQUzZa5zC0BCYFhTy+Zti5FjFJlxpPpokaxoeDFHrsS7UUWqDOtF fbYoX/2PbaOIqmXaL9G7c5ZZKTpA+6lAbv1j8kQ/VX1ldFbUo64wURkDoq5c2p68D77u 1Ahpf/fCQsTkTY1Wp6dCZUtuZzXIFQSCEQl0XANrqGyU6pFqsArt5LfuqAKIVenM5wmb R7H2XsaJ06w6IWsH7LrqUyl+vpZuvqkzpv9cWeDpIrqWCEJp99KuQCb5i0nowbKCpFZA 3JxRft0QJaPP1gSN6F2s43usbEUEwW2EeJPHkhP4p6Af82zzTlakYGFytYmzTjalXW+b oCkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OyRnsJVRruf/m80FrGKTRZVww4MQNDOq9V0LpFlFr0M=; b=KparHMOVWlztL6oeFVlXSW+VzZYdIzdzUJ0qa75zRBtsayGOm32/7G7BKt4GsfeeuD a0t0ziEA/b97GZR4oJgp+r4QepXJyYcESeITtGnMLnMfJXNb9EtW8Nu1u6SZZqtV/qyK K9i1upWyw95bVFkf6yqx/9kM5f+rm7AK5WkoPAB7hdij0Ho5FoZjJcWtjv46v/I0d8EB YDSQgBc6kR9+c0v85gsPC+EMS168zUZrYELdqOGqznpnFMxoI2wppzL+Vh6TFj+XzZCt URu0TiKwGiFkn5XxhDYYEgSl0PTQGI1DLCFGRrvPt5Mxj4uxvTK+vUtxrC3lL2quj1lB Dgsg== X-Gm-Message-State: APjAAAX9boYPjNBH3zpSqVM2kZAnPtn9j62DHN1zLzoT1sKrF/rj5Rg4 kZYxNy04DAVbJ+vxGdh1RGOPLg== X-Google-Smtp-Source: APXvYqyKwG2sYJHMjn4tWCqhls3LcFt8KZurZyMzUCpC0hVv7z3gDQwXei+0Clur381QENkhHTQuHQ== X-Received: by 2002:adf:e8c2:: with SMTP id k2mr36709007wrn.198.1563469693498; Thu, 18 Jul 2019 10:08:13 -0700 (PDT) Received: from localhost.localdomain ([2a01:e34:ecba:5540:2c05:40e4:899d:aef0]) by smtp.gmail.com with ESMTPSA id w7sm34335856wrn.11.2019.07.18.10.08.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 18 Jul 2019 10:08:12 -0700 (PDT) From: Fabien Parent To: albert.u.boot@aribaud.net, weijie.gao@mediatek.com, trini@konsulko.com Date: Thu, 18 Jul 2019 19:08:08 +0200 Message-Id: <20190718170809.17105-1-fparent@baylibre.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: u-boot@lists.denx.de, GSS_MTK_Uboot_upstream@mediatek.com Subject: [U-Boot] [PATCH v4 1/2] pinctrl: mediatek: fix warning X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Fix the following warning when CONFIG_PINCONF=n: drivers/pinctrl/mediatek/pinctrl-mtk-common.c:35:36: warning: ‘mtk_drive’ defined but not used [-Wunused-const-variable=] static const struct mtk_drive_desc mtk_drive[] = { ^~~~~~~~~ Signed-off-by: Fabien Parent --- v4: * New patch --- drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c index 938cc75496..3004335c57 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c @@ -14,6 +14,7 @@ #include "pinctrl-mtk-common.h" +#if CONFIG_IS_ENABLED(PINCONF) /** * struct mtk_drive_desc - the structure that holds the information * of the driving current @@ -39,6 +40,7 @@ static const struct mtk_drive_desc mtk_drive[] = { [DRV_GRP3] = { 2, 8, 2, 2 }, [DRV_GRP4] = { 2, 16, 2, 1 }, }; +#endif static const char *mtk_pinctrl_dummy_name = "_dummy";