Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3163018imw; Mon, 18 Jul 2022 03:18:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ttfCA2Cl6M9Hbk3DM2tPL2NT5uoex81D+d98rrDJ6NAZfFWU9/DdDfH/EI/ibXsMrAcpRp X-Received: by 2002:a54:4105:0:b0:33a:3de4:3316 with SMTP id l5-20020a544105000000b0033a3de43316mr8793187oic.145.1658139516845; Mon, 18 Jul 2022 03:18:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658139516; cv=none; d=google.com; s=arc-20160816; b=HLUogfWDvPlj6hBm8wV9LH02Kd7FBrYVw9gwotHZH5qJksnM3zmkqSX4m1ibj/LPnz CVCdMJA0HcUtJDqT3dAbyAAbrfzgyLNjJNUtZgunoIjNPjyWRs6+UPsm3ZHfcM1Db3nr WyBgruVWxId4x7Q19ktqnsIzNdHw2mL+763VQDb05a7cKfEEek2p8Ts6t5I6++AYCKIn woYdRsOaNOUE2xZ1TI1wXNwwIUvjiCHJZtlXBr01cXcuHiljwTu1pFD6EH8DsMMfc/AS UQmP3oHXsDXszrriYClBtk0mcX5vQ6aB3Ty+aQ1tcJX/M9M4N4pUAlLbMGqjkQTYC70R esxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Oq8BD5uaI4viYc10hO4H699VTGWEnnEzA4dzKhdkBVc=; b=rXGRqz3EdlAIbt0m2PDmdsIUXyhH3Hwjjjjsrso27DXieKN8siv+nU/cib+E7fP+1J HlVj+2mLmbxd5ZA5o9HeEwYqikYv7Rpn11jxa4tf4zf4wP+Lluw8Aonm4rr3KMt4jiua oQWQi/JbbmuZZXGpcsPr5wp6/3JpipsJ8HDE5ONe0axk/kTUI59gHuEUFD+4PaPo+Nmc nGE0rhYJDrZJIzTMehhqIFCWO6rbgYulnt2w+8oiQ7fUaPVLJowLcI0tqYiYgyQQm5bE i0THpOGtxwy6wmHw3FzNwXAgUSfo1q1PxoyYaaninGZaohunOmEsx/2Ss7PCu7hnrEiC FP7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j3v2aNsh; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bs11-20020a056830398b00b0061c9ee91bc4si3785703otb.94.2022.07.18.03.18.23; Mon, 18 Jul 2022 03:18:36 -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=@linaro.org header.s=google header.b=j3v2aNsh; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234168AbiGRJeG (ORCPT + 99 others); Mon, 18 Jul 2022 05:34:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232964AbiGRJeC (ORCPT ); Mon, 18 Jul 2022 05:34:02 -0400 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 428E26454 for ; Mon, 18 Jul 2022 02:34:01 -0700 (PDT) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-31dfe25bd49so63293547b3.2 for ; Mon, 18 Jul 2022 02:34:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Oq8BD5uaI4viYc10hO4H699VTGWEnnEzA4dzKhdkBVc=; b=j3v2aNshcROHM6TEQNF2F+FGznJAAuFaMy1qe5h7Q8OBHg/UUF/13Z5IhAK5/b65cW +YtdEGyRJaj9WNgtRkr97cxDY8vY0Y/hzaVybMYS83Sx6aKq5Gh+CM2aw/gcqI/9WvDJ n4DN7Xq7cfdCawPn04GJA/uwvAOfglFhReBYe0sqdItznEFirOW55MV9SKSqcyNFuj/x HF3yRg5kzyt0lE602eLn9JiPVjLyudeZKpgBWNtrGDDx78P1CFq1P/05p7gVEtBm/csm bDW4gNrTJSoCHqlGy1nzlW+XWWPuzSpFzAk0mw1hLN6lGFZBEjoVHD+wBYRlmeJRH0GB eI9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Oq8BD5uaI4viYc10hO4H699VTGWEnnEzA4dzKhdkBVc=; b=5BnyWMmzRe5eJ/JlYRoe5vbflRNqBwWhXJYyKaNCkjfQrA1pXUn2eLb3I4mywBtaU8 UqHne0UvcSQv9Gdm+W+Mak7pP8kla0VhYCR/i/SI1p52eFYHZXR2kf9cXEapCH6c8kUr OdQEoXSL5DE2+2gEFizZjZkQ0dSTNaptesRgffbhitMSQdRjzZO7/BOHyWCsbLGHb9Ju ZIRvQyoH9WV5tN6MoV4Weovl5Wyfx9UKxCvNzOoWBl8rKoh0nkxrUnjqLrAIe1F58vbc e4HfmLawhxvQN9V0nmcn8r4n8trFpGmMAF8EJ+Sh6e6rezBRAHc0gQt+GZhUVUP0MuSl kckw== X-Gm-Message-State: AJIora+9xCmcjjymnlCvHq5RsTU46N/Db44L/LJBey4m1RELz4XC7aeQ Q4SIosbgWTpFJBBAi90g8fQ7Jlv+NsQUz++d4LjI+g== X-Received: by 2002:a81:5b43:0:b0:31b:aed2:f563 with SMTP id p64-20020a815b43000000b0031baed2f563mr28978731ywb.115.1658136840547; Mon, 18 Jul 2022 02:34:00 -0700 (PDT) MIME-Version: 1.0 References: <20220714020319.72952-1-warthog618@gmail.com> <20220714020319.72952-6-warthog618@gmail.com> In-Reply-To: <20220714020319.72952-6-warthog618@gmail.com> From: Linus Walleij Date: Mon, 18 Jul 2022 11:33:48 +0200 Message-ID: Subject: Re: [PATCH v2 5/6] gpiolib: cdev: consolidate edge detector configuration flags To: Kent Gibson Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, brgl@bgdev.pl, dipenp@nvidia.com, andy.shevchenko@gmail.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On Thu, Jul 14, 2022 at 4:04 AM Kent Gibson wrote: > Combine the polarity_change flag, struct line eflags, and hte enable > flag into a single flag variable. > > The combination of these flags describes the configuration state > of the edge detector, so formalize and clarify that by combining > them into a single variable, edflags, in struct line. > > The edflags is a subset of the GPIO_V2_LINE_FLAGsb relevant to What is that "b" at the end of GPIO_V2_LINE_FLAGsb? Oh well no big deal. Bart can fix when applying if it is disturbing. > the edge detector, and is also a superset of the eflags it replaces. > The eflags name is still used to describe the subset of edflags > corresponding to the rising/falling edge flags where edflags is > masked down to that subset. > > This consolidation reduces the number of variables being passed, > simplifies state comparisons, and provides a more extensible > foundation should additional edge sources be integrated in the > future. > > Signed-off-by: Kent Gibson > Reviewed-by: Andy Shevchenko Reviewed-by: Linus Walleij Yours, Linus Walleij