From patchwork Thu Aug 24 06:45:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 717682 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D9F8C27C40 for ; Thu, 24 Aug 2023 06:46:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238028AbjHXGpi (ORCPT ); Thu, 24 Aug 2023 02:45:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240224AbjHXGp2 (ORCPT ); Thu, 24 Aug 2023 02:45:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 142B7198; Wed, 23 Aug 2023 23:45:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A60D2646AF; Thu, 24 Aug 2023 06:45:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40147C433C8; Thu, 24 Aug 2023 06:45:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692859521; bh=bcZU8YxffkCIfRb0QCjzp823WBVM6ukmSQ1+psPp8jA=; h=From:To:Cc:Subject:Date:From; b=JIqCFyYzi/+ovUjSlx41YA5FHd8G0SWzpc/MvS6UTxznILw7FBpJSEyQO/7OAsp4t iAegdW6sQjZccs2ty9aC2cJ5npy0HlDpblEjqmkR3uMFXuwv2gcwFfciAZ/wcB/c36 6GkZyt8H1XE3my9fFPcyXEo23T/BT7m5tv/3VtsD2fugH6dbAut+rAY+8S0nTxhFpr N+GPeWIRG/ppwkevburgYtB1Kf6N1ZFpWuOSP34/DNFUL9240g0B15nLua4Z6VAnNl Sc5wi2jwXbGUGgTCgSaD4BINPwWxV2pRKSOQxVnnV84xS0MMGIlBTuz5ik66KBPjD9 e7AtiAu1bhmJQ== From: Masahiro Yamada To: Linus Walleij , linux-gpio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Haojian Zhuang , Tony Lindgren , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Subject: [PATCH] pinctrl: single: remove get rid of __maybe_unused Date: Thu, 24 Aug 2023 15:45:08 +0900 Message-Id: <20230824064508.968142-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org These are always used in pcs_probe(). While I was here, I also changed 'unsigned' in the same line to 'unsigned int' to address the checkpatch warnings: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Masahiro Yamada --- drivers/pinctrl/pinctrl-single.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index 0dabbcf68b9f..51783fa62c1c 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c @@ -240,32 +240,32 @@ static struct lock_class_key pcs_request_class; * does not help in this case. */ -static unsigned __maybe_unused pcs_readb(void __iomem *reg) +static unsigned int pcs_readb(void __iomem *reg) { return readb(reg); } -static unsigned __maybe_unused pcs_readw(void __iomem *reg) +static unsigned int pcs_readw(void __iomem *reg) { return readw(reg); } -static unsigned __maybe_unused pcs_readl(void __iomem *reg) +static unsigned int pcs_readl(void __iomem *reg) { return readl(reg); } -static void __maybe_unused pcs_writeb(unsigned val, void __iomem *reg) +static void pcs_writeb(unsigned int val, void __iomem *reg) { writeb(val, reg); } -static void __maybe_unused pcs_writew(unsigned val, void __iomem *reg) +static void pcs_writew(unsigned int val, void __iomem *reg) { writew(val, reg); } -static void __maybe_unused pcs_writel(unsigned val, void __iomem *reg) +static void pcs_writel(unsigned int val, void __iomem *reg) { writel(val, reg); }