Message ID | 20230616203356.27343-4-raag.jadav@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1601238vqr; Fri, 16 Jun 2023 13:37:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ibcO8L35L50kCB0N4gQogtYQEPiRALzOOldhnnGpBb5TAUHYWLoThZQ2D/uvByB2OMwx2 X-Received: by 2002:a05:6808:2205:b0:39a:b347:e603 with SMTP id bd5-20020a056808220500b0039ab347e603mr3895250oib.55.1686947837131; Fri, 16 Jun 2023 13:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686947837; cv=none; d=google.com; s=arc-20160816; b=AG4YDVZnMTeZU+aeW5mG1cYI6/yMGLMhy6S6qsCz2h5ZC8GJCCe14oX+2XpVNu/VAY S+Rdsw+EhQxdTfL9ZN/1ug1w+SCWAq/BsKP23WuyEfEJK0NfjjPcMwUbXo7TytI3UMEe gcmw2CJQklZAAJmAE/Ue4LBK58QPhen2z9fbs0LEtSr9h0byCz66unmvh2iwC3xL9KbO VSxtBOydUvKHRtY48tw8Wh/TEALVqbPS4VT/yevrlRoH0HoZJ9AqOsH/IHSeO4aUfRpE u/X7MJPd+f8MkNsfM4S6qOpqbt+LlhjcNvJrZD6UYl+MSzlnCRLD9+DbMDjjmSV0aDxw eM/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=ivIgUdp6sPgYFFh8hMcp0Gstm0CEoesBooKN/iQfx78=; b=r2pEUZUsl5YP4yL6MofQG/KQQUb47/71yWRrkRuNdC++8O5LSHiyfoyxt7w/AuSK0x H9MhXQ3McnZOW7qj1uE+U2nmGumkuo5uMvVJ/ct2OSaT3lBwh1ZF1btl68DF8dJjGmLi 7Mu7s7y0bgBWTVmWGOJtlzR92XNZ2h0KOw/lgdd5A7RiPRNv2SyHDK2nwT6HyQAK0RPT PHDSrdC5wjRQ6yrvDvehwQ4g0fHs8gO+C68oQysAVQKdBNAiCNDekm30K1hrgk8x42Da XDKo0OJNJNDaclkRV0GPDJw47h+Tm9OfhIaXrcI46gtrydMeTvVMPqhxr+37QX3UfRJ5 yBGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ac68FdO8; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c24-20020a17090ad91800b002527ec91a2csi2255409pjv.98.2023.06.16.13.37.04; Fri, 16 Jun 2023 13:37:17 -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=ac68FdO8; 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 S229967AbjFPUfP (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Fri, 16 Jun 2023 16:35:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233180AbjFPUey (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 16 Jun 2023 16:34:54 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E8DF3A9B; Fri, 16 Jun 2023 13:34:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686947693; x=1718483693; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=gqFVDbmVob3I2MoqOIXVaTRuNrQ5hYWbmLsucJsf0nY=; b=ac68FdO8tQy5GdqPGg00jlGyicPp/O8zg5oDTh5gS4tMXn750INuM/qg aAvSFlkz+zEwD0rarNEzT0po+jYyQYSqwZ/G4pPIFrcIxwVCwYyz8C2l8 xWF+2pRQxXK/K1acH47LnR3ZSEFiB6T+Qinj84DLbg9BZeIgpFJ2wJu8v d3IUrGzcWAV9pVMtVpgI1L7oRkJJCIe40cpjegMzty6r4Z8o5cud8r2Jb nSvlAAWfkUW+vNHpGDzO8OZWR490D6C2Z1421c0O5wfDHX22berNG1ST0 ilcfGTtjilIQbijl+HODZQ7IQVTjE0JpH8H6FT/WTTXk/KYygBoHyq+kF g==; X-IronPort-AV: E=McAfee;i="6600,9927,10743"; a="358181776" X-IronPort-AV: E=Sophos;i="6.00,248,1681196400"; d="scan'208";a="358181776" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2023 13:34:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10743"; a="802964400" X-IronPort-AV: E=Sophos;i="6.00,248,1681196400"; d="scan'208";a="802964400" Received: from inesxmail01.iind.intel.com ([10.223.154.20]) by FMSMGA003.fm.intel.com with ESMTP; 16 Jun 2023 13:34:50 -0700 Received: from inlubt0316.iind.intel.com (inlubt0316.iind.intel.com [10.191.20.213]) by inesxmail01.iind.intel.com (Postfix) with ESMTP id 57A7B911EA; Sat, 17 Jun 2023 02:04:49 +0530 (IST) Received: by inlubt0316.iind.intel.com (Postfix, from userid 12101951) id 5461CCA; Sat, 17 Jun 2023 02:04:49 +0530 (IST) From: Raag Jadav <raag.jadav@intel.com> To: linus.walleij@linaro.org, mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, mallikarjunappa.sangannavar@intel.com, pandith.n@intel.com, Raag Jadav <raag.jadav@intel.com> Subject: [PATCH for-next v1 3/3] pinctrl: baytrail: invert if condition Date: Sat, 17 Jun 2023 02:03:56 +0530 Message-Id: <20230616203356.27343-4-raag.jadav@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230616203356.27343-1-raag.jadav@intel.com> References: <20230616203356.27343-1-raag.jadav@intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768893015078327265?= X-GMAIL-MSGID: =?utf-8?q?1768893015078327265?= |
Series |
Minor improvements for Baytrail pinctrl
|
|
Commit Message
Raag Jadav
June 16, 2023, 8:33 p.m. UTC
Invert if condition and get rid of redundant else.
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
drivers/pinctrl/intel/pinctrl-baytrail.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/pinctrl/intel/pinctrl-baytrail.c b/drivers/pinctrl/intel/pinctrl-baytrail.c index 97ead2c58b66..27aef62fc7c0 100644 --- a/drivers/pinctrl/intel/pinctrl-baytrail.c +++ b/drivers/pinctrl/intel/pinctrl-baytrail.c @@ -753,9 +753,7 @@ static void byt_gpio_clear_triggering(struct intel_pinctrl *vg, unsigned int off value = readl(reg); /* Do not clear direct-irq enabled IRQs (from gpio_disable_free) */ - if (value & BYT_DIRECT_IRQ_EN) - /* nothing to do */ ; - else + if (!(value & BYT_DIRECT_IRQ_EN)) value &= ~(BYT_TRIG_POS | BYT_TRIG_NEG | BYT_TRIG_LVL); writel(value, reg);