Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5860395rwd; Mon, 5 Jun 2023 09:28:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4TRS4YlUMnJzHkmJcaHxur5hPys2pn5DNQ2UlXXWrk+pnBLGbCQOqOhYy7Dt7NaZdyRMnF X-Received: by 2002:a92:d242:0:b0:335:25e7:1897 with SMTP id v2-20020a92d242000000b0033525e71897mr246456ilg.32.1685982490764; Mon, 05 Jun 2023 09:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685982490; cv=none; d=google.com; s=arc-20160816; b=V9Tg/BUgqNeEuGvfMeHuvyGPiDS3Z1oseCrrVH+zZvQWuZh0ZDk18W3EdUy+aPjSqI 3ekRojB8//gtTMoTOYB2znUNeIitjTeQ4UTcGNmi98rHzvY9HQKA+woxypCxQw3bhpW9 h5VBBaOfv54Y2oE0i1a+0QQBxfNi6Ww+SNok1TdJ5G2AYOztWkWcAXNZCdB9g5vtYOlC glReViFpcvkE3AqFb3YoMtF/JtdVmIurt2HEzzx8XFuf5QBNjTcGXrFaFHWdES3B3lTJ HNbdxZ19wm1cf7RCeiLD6dg1QfwN1+HslKkF72rpPEEnumYldPNcp9S0c0rPM0NvF7sS 9JFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MWRavSNZriOIuYWXu3s3Nt6dqoRju/ldrEJsay4bv8Y=; b=bNbBWI639ckB5fo9Zp11Qsxdi/FeszE6eTSwJnoZw7cIKBk+NUSZ/yzUIClkjk9ppP ZKV0LV8aNQYlauzjNOo4dluNYDqEAn+BonsPwn4aIY5SbITQD2VL7Bo/t52zl2VAMRJS aV7rkFkb8mSLpBRy407JW7zRzrAZC7AimjMUiYptSo4soUdJxPJDi8CBMBtbQ7CLV3rJ Go25wS9J59n8F55kQkfWDTulS72o3BZQJTI7giMxoXjmXYmYJlYC53HdbUDB+3880Foo omxZB38pEVSBHa9jktEYV/yP1s/t1XAq9LgBfLgHzw9yx6ApylYMlBWR9gOeup5/nKBV ztOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JJIBqsoG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a36-20020a630b64000000b0054294ef7818si5253009pgl.862.2023.06.05.09.27.55; Mon, 05 Jun 2023 09:28:10 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=JJIBqsoG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235144AbjFEPrv (ORCPT + 99 others); Mon, 5 Jun 2023 11:47:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235065AbjFEPrd (ORCPT ); Mon, 5 Jun 2023 11:47:33 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47606E62; Mon, 5 Jun 2023 08:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685980022; x=1717516022; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xhhgZY3xg0rFH5890iJyOdraSy01n5OZPHXu7d0onXU=; b=JJIBqsoGAf/iRL50/jICX7dqw73LjnniN0WLwkeoRsGyaardJFOkUOgc 0KTbVg/DToTettZ1+siha5SRob2JMRqW/I6F1J/JlviFAUOU/PmfRSex7 laXPLntEEyXlrqY2BXXHx4tsduxkaQUg/z653A9QJn/pUc3R2uKDedI5h OH/+Vjk4H50C5u2jn+d3YvrkVng8rguFaEhaplaS3U0N8tiI6k0CfF9aa W0s901FFfZVAMWqkQqUtdOWF3pR97JquHotX1+d4XOiCeRpXUWsHmybYa llWHL/fTIPQBgnL7WDOA/3T2o5lUB2ltQn/VXzIWv6YedAKY9WjX/Z9jl w==; X-IronPort-AV: E=McAfee;i="6600,9927,10732"; a="359713189" X-IronPort-AV: E=Sophos;i="6.00,217,1681196400"; d="scan'208";a="359713189" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2023 08:45:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10732"; a="773777198" X-IronPort-AV: E=Sophos;i="6.00,217,1681196400"; d="scan'208";a="773777198" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga008.fm.intel.com with ESMTP; 05 Jun 2023 08:45:18 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 82D662A6; Mon, 5 Jun 2023 18:45:25 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mika Westerberg , Andy Shevchenko , Linus Walleij Subject: [PATCH v1 2/2] pinctrl: moorefield: Use BUFCFG_PINMODE_GPIO in ->pin_dbg_show() Date: Mon, 5 Jun 2023 18:45:23 +0300 Message-Id: <20230605154523.11799-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230605154523.11799-1-andriy.shevchenko@linux.intel.com> References: <20230605154523.11799-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 Use explicit comparison to BUFCFG_PINMODE_GPIO instead of implying it. Signed-off-by: Andy Shevchenko --- drivers/pinctrl/intel/pinctrl-moorefield.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/intel/pinctrl-moorefield.c b/drivers/pinctrl/intel/pinctrl-moorefield.c index 7656a5e20919..2d38d953f360 100644 --- a/drivers/pinctrl/intel/pinctrl-moorefield.c +++ b/drivers/pinctrl/intel/pinctrl-moorefield.c @@ -504,7 +504,7 @@ static void mofld_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, } mode = (value & BUFCFG_PINMODE_MASK) >> BUFCFG_PINMODE_SHIFT; - if (!mode) + if (mode == BUFCFG_PINMODE_GPIO) seq_puts(s, "GPIO "); else seq_printf(s, "mode %d ", mode); -- 2.40.0.1.gaa8946217a0b