Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp59742imw; Wed, 13 Jul 2022 19:08:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uZ7e0ye+/B+ERgc5eKKav64RuFB9dUVWEIOoQUAki3zAbWh6utowGd428ARSffDRlO/v5D X-Received: by 2002:a17:902:7c04:b0:16c:2e00:395a with SMTP id x4-20020a1709027c0400b0016c2e00395amr6073802pll.123.1657764538329; Wed, 13 Jul 2022 19:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657764538; cv=none; d=google.com; s=arc-20160816; b=r6TFEtDVQC9x8uRCPCtEF7gkJ9tEK87cUyG6t1zXINrtcDQjEtHUN/KxE6xMOBTqHY fQvBZqv3pyas0zJc9omGj2AQxflNWW8HmqEz1Vv7OeaaGfEwt5K4D7cp6sXWaSF5RKev wTFQFLxAF9VJJxOMKvDgub8pXGsQWI7QJZCH5nJlWNiU4CSyMRNbIoE6oasDuiq2fIOL /96ngpaLLO9mj0P64foi2GKoxJNI3Vh5cR+xAJvvC2wuYQCJLKG3qX34Ybrb7PbEmNZ4 7H02slBqJgHqoSDa02RG+gOSPCRhXp6YHoet1Ols6Mb2xNw4qA7GcRVsImbAdSEQLmtl nlZw== 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=3ezKfKuttZ9LUnd9ggWi+OcNmPhSUPS/idvxlrAh6+E=; b=imsIYXNpo/lZeYtFgVLsDJoJQCa2k+AbTiC3nwSmYtHgRIxEUgpmXTxsJsd8sK6Kro stS2GQ+e79fGSmivQjEKw4XLtLtK06YIn7z7Q9rBSYM/yo7jK+z4+4AW/mrI8y1kRuFq u1mqA8kizjyA5E0+sv6PElyUPT7KzdO7sY83Q+sKdbpviCpwJVZiEDpvsla7ItZWcd2g 8DMfmAmdOxOtBwkS5ZacGjw0fxN6glz3kBHwn0nv7qlR73JJK+5SP35iTr9a/9A6/Gup bNqRU99zjHkGMs2f5dIUb/u+AVPfmtkaVLFr6ok45yOCS7FrE0vG0PQNSfcpSaX/VN7t KuBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oFpcvFol; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 36-20020a631864000000b004197598c879si112605pgy.700.2022.07.13.19.08.46; Wed, 13 Jul 2022 19:08:58 -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=@gmail.com header.s=20210112 header.b=oFpcvFol; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232562AbiGNCEH (ORCPT + 99 others); Wed, 13 Jul 2022 22:04:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232524AbiGNCEC (ORCPT ); Wed, 13 Jul 2022 22:04:02 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0AAFFD37; Wed, 13 Jul 2022 19:04:00 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id r186so258490pgr.2; Wed, 13 Jul 2022 19:04:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3ezKfKuttZ9LUnd9ggWi+OcNmPhSUPS/idvxlrAh6+E=; b=oFpcvFolbR0BzEiSZSTs9f7Vki+PGH+9tCEEweuLSg/05jvonNlkUjjnawMfe0Jsyp MZ/Dz7257b/PLyp2g8AYTDp5bZu2ERpIP+SAYEoiVOBqiNtFviRFU87mIaW6nyUi5uv9 xvGBDnyOuxsKNXpWw9olToEOUTGOpxPSqqhOEGQYsCw8gjPXKc2qsw2F+sRa//G+viSb /iIuG2CxKHvnSCIQzEsUuCXM3wAekt+6y+X2RFzDq/HGAMhbA8zm29lb3ki86oTdVCLH QrJr8W71Dg1ew/E8IpXMd0mTcKJ+CcK35ul033ABStUuz+JCSybaBoZboiRxMpCzJNkM Qhdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3ezKfKuttZ9LUnd9ggWi+OcNmPhSUPS/idvxlrAh6+E=; b=gtvwoLiRu2aoaHi8/jL1pla+0Q3EYtuTbEuNXDZ0x63zyzLWmo/QXLUjjko3+A1Rzb orvVOr56h1eJRP9MQ1FxmTpmlv7FZOOeiZRPAdtzjafo+cGrUe/djjVM3FSadQKvT7ny HNjL6Vq20dNu26iQrNnrhB/DnE7ZXAtlw7ZEf7xUepo3FqFY7X/BCczhpkvJWichKr5C jIQrXDrshtBfuyOpxUH9YWC5f7dz7RJDGuYAa1vVPMoHd7jagkP0zDiIokMoM4r6Qvwj y9vtMT4s8lLGztzyKsD60acBxmwWUPEwpDlx1A5FsdXtDvtaBi92z/drP8s+svCFUMsh QKlg== X-Gm-Message-State: AJIora/BpPoSle3MBZV9Dic8X3HgHKDfpI83lKD2/su2j5SynL9Tq/Dc Vweu+iIcClY2E2Qdyy85vXwfE8B2dx0= X-Received: by 2002:aa7:8e17:0:b0:528:9f8d:ad38 with SMTP id c23-20020aa78e17000000b005289f8dad38mr5960225pfr.4.1657764239896; Wed, 13 Jul 2022 19:03:59 -0700 (PDT) Received: from sol.home.arpa (110-174-58-111.static.tpgi.com.au. [110.174.58.111]) by smtp.gmail.com with ESMTPSA id i137-20020a62878f000000b0052542cbff9dsm230886pfe.99.2022.07.13.19.03.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 19:03:59 -0700 (PDT) From: Kent Gibson To: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, brgl@bgdev.pl, linus.walleij@linaro.org, dipenp@nvidia.com, andy.shevchenko@gmail.com Cc: Kent Gibson Subject: [PATCH v2 2/6] gpiolib: cdev: simplify parameter in call to hte_edge_setup Date: Thu, 14 Jul 2022 10:03:15 +0800 Message-Id: <20220714020319.72952-3-warthog618@gmail.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220714020319.72952-1-warthog618@gmail.com> References: <20220714020319.72952-1-warthog618@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, 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 Improve readability by using the GPIO_V2_LINE_FLAG_EDGE_BOTH instead of combining the rising and falling edge flags. Signed-off-by: Kent Gibson Reviewed-by: Andy Shevchenko --- drivers/gpio/gpiolib-cdev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index b44526e3630e..f635bbbb6a6d 100644 --- a/drivers/gpio/gpiolib-cdev.c +++ b/drivers/gpio/gpiolib-cdev.c @@ -885,9 +885,7 @@ static int debounce_setup(struct line *line, return ret; line->irq = irq; } else { - ret = hte_edge_setup(line, - GPIO_V2_LINE_FLAG_EDGE_RISING | - GPIO_V2_LINE_FLAG_EDGE_FALLING); + ret = hte_edge_setup(line, GPIO_V2_LINE_FLAG_EDGE_BOTH); if (ret) return ret; } -- 2.37.1