From patchwork Wed Nov 13 06:36:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhangjiao2 X-Patchwork-Id: 13873198 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EA110D41C08 for ; Wed, 13 Nov 2024 06:36:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=dWVXsgmc1YyB4uGPKhC/hDpAJ2WuinlElAB7RXtPtqk=; b=Rmrh7E2JpoaTE8 Iu59fW8zmFA494uX9byQdbu5w3LiRGDeRYHVTGhWqk4S3b/6yhtXWXCFHPY1msubPwjSKZ1tJhOWY jSTcFSMbNJw6ZJJNA/v3C2aI/3jWQy/9Wf+UQ/WDuJHYCUy0cRIEq/0/aUkJjRiehPJrVBgnj2Xhz gI/hMwVxcuQ4U84SYdtHX4Bgcve+rkOQcj4Udt+xTvMTlowI3ehljqBJhGfho3Yll0ZwvMDvJF3+X jvtV4Z0aF3h09tSgpwb/nD++Kjef4cQ88b0vOXj4KqD1l9VNbkBbNl9/umV5EZvThs9WowZ3+ByuD 8/Y+JOoDg4j+O3eFua0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tB6zG-00000005ubS-2Xnr; Wed, 13 Nov 2024 06:36:22 +0000 Received: from cmccmta4.chinamobile.com ([111.22.67.137] helo=cmccmta1.chinamobile.com) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tB6zE-00000005uah-05b9 for linux-riscv@lists.infradead.org; Wed, 13 Nov 2024 06:36:21 +0000 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app04-12004 (RichMail) with SMTP id 2ee4673448dd9a8-e72b1; Wed, 13 Nov 2024 14:36:13 +0800 (CST) X-RM-TRANSID: 2ee4673448dd9a8-e72b1 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.108.79.101]) by rmsmtp-syy-appsvr04-12004 (RichMail) with SMTP id 2ee4673448dc8e3-63f8e; Wed, 13 Nov 2024 14:36:13 +0800 (CST) X-RM-TRANSID: 2ee4673448dc8e3-63f8e From: zhangjiao2 To: dlemoal@kernel.org Cc: linus.walleij@linaro.org, linux-riscv@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, zhang jiao Subject: [PATCH v3] pinctrl: k210: Undef K210_PC_DEFAULT Date: Wed, 13 Nov 2024 14:36:11 +0800 Message-Id: <20241113063611.5330-1-zhangjiao2@cmss.chinamobile.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241112_223620_652553_F768A076 X-CRM114-Status: UNSURE ( 6.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: zhang jiao When the temporary macro K210_PC_DEFAULT is no need anymore, use its name in the #undef statement instead of the incorrect "DEFAULT" name. Fixes: d4c34d09ab03 ("pinctrl: Add RISC-V Canaan Kendryte K210 FPIOA driver") Signed-off-by: zhang jiao --- v2->v3: Modify commit info. drivers/pinctrl/pinctrl-k210.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-k210.c b/drivers/pinctrl/pinctrl-k210.c index caf20215aaba..eddb01796a83 100644 --- a/drivers/pinctrl/pinctrl-k210.c +++ b/drivers/pinctrl/pinctrl-k210.c @@ -181,7 +181,7 @@ static const u32 k210_pinconf_mode_id_to_mode[] = { [K210_PC_DEFAULT_INT13] = K210_PC_MODE_IN | K210_PC_PU, }; -#undef DEFAULT +#undef K210_PC_DEFAULT /* * Pin functions configuration information.