Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp292470pxp; Wed, 16 Mar 2022 06:05:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsqrhxMZZRQxEHjyMIMAP0FQNPy85SdZHKsvdqBTI6NYLqtVLTcevfxbTtrFFroOQT1vN/ X-Received: by 2002:a17:902:ce8b:b0:153:ae62:8d31 with SMTP id f11-20020a170902ce8b00b00153ae628d31mr4919999plg.111.1647435951677; Wed, 16 Mar 2022 06:05:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647435951; cv=none; d=google.com; s=arc-20160816; b=g4xO28zwygLYF3I/opzr0yx19jCObH8hxJXUPaCHfPn8shMmvkuUi3fkVhC9X5qaQ0 zgaZGI0onu0wEuE8E/rMqyrDjNhnL5+mHqebjO478uF1yDb/rGQGzr1jwt6NNW3StvuM 8EN6IzULKS/Cp5B1jPy4m9BQOZOqPpbsHBRdDGDWtpQGyFlRRMICABH0DcICFnsZEm6l L48SrxB+DPUHUtolUHpwCqgv0olawrIfQ543SK2V2HI2s0AckALsRoR5dL85GHGACeZB +lvz8++bDzKV0rHKWHvOHFFYMPw4/JJxOpoZQYJUyUiSB2X5gg8cfC3Js2Jk+DPBgzW8 dsOw== 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=2R5wH7aZWLbq7NU5C7S2zfPJjL0MgrTHEo9aJHUkpcs=; b=CTlIH6svrkBxvDCvEY6t/hzj9KXbHy9rg5jKECp+Q6+dT9uwg1z4S6+bN1I6TfQUey NtJuJa5bvAUQaQn/DAOlywnd/6WFJjqIpxvuwTUnTuC3J+T/T5gQKSj3TdeW+JB6CseH 4u1ISaVAfP/mAfB+b/VYcbcVJPb/NOeKgg/glTV3oxYxZX3ZrHoXtPykXu6X1rVhQAjI LBXbcwlErL4vfTsikkRZT840ZtCwEb3nUBYmqQ7rX6NiIY3La8hMZLQztTppZL+c9F1F ApnYIVxYFROTQUnAaWMiLYo5KVE2+y+bKrmUULjJFL/FW9D5z0I4FlLC7cTZFonDe6Ik TTwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YP7xzPGp; 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 y9-20020a17090322c900b001519ac2ef66si1886185plg.170.2022.03.16.06.05.17; Wed, 16 Mar 2022 06:05:51 -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=YP7xzPGp; 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 S1351428AbiCOTkd (ORCPT + 99 others); Tue, 15 Mar 2022 15:40:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351414AbiCOTkV (ORCPT ); Tue, 15 Mar 2022 15:40:21 -0400 Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07516289BC; Tue, 15 Mar 2022 12:39:09 -0700 (PDT) Received: by mail-qv1-xf31.google.com with SMTP id 13so299490qvq.8; Tue, 15 Mar 2022 12:39:08 -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=2R5wH7aZWLbq7NU5C7S2zfPJjL0MgrTHEo9aJHUkpcs=; b=YP7xzPGpoR3yYsKXNbyMstcMwSpyG4B7mE6pdO47Xfl8t7snvSVN9KfHhMAAWnXocB cFZbRaH4YDmVRBHMtsDoG75yQfun3oFcj8CeMqJ8weq1v2IzuyDt4/iV/ygtUhoJ/ZYL Uw84z/r8xgLOA4XIIq3M0K84C86uLEYcQvBc6POH9LsqHfq5p4fxxwoG2PpwrrwT6mcj zEJ5Ibt12Cxc0KccNsyGxRDIkmb8cyY06jYGL0XhBxDSPylPNKGadh/q5wOSOYQ2fkdC HpR4ECQi5Yyt2EaetRbhvWL+1wizjiBs9eQWuK1xEtgNNaW3BDHSo1jdHsvMBEa2ioEE BrcQ== 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=2R5wH7aZWLbq7NU5C7S2zfPJjL0MgrTHEo9aJHUkpcs=; b=HRJInyi1mSK2gf6IZcVFZvqOHAQ1x32/rZsDws+j5KrEQKlmSF5vDc3ok8eir/+L4g XGWfwguYfmUkkOPFf0AxFTdKOUsnV34YeXVdc99SvR3VfJtEh/ntMuyGFIzNLA8LUiUB 3akuOmWV+dxcARaQ3aZyKPiMpEXUbw7ehW/Owv6F4W+6oSkoF1mESwNCASXZGNzrLIYx JgquHfs3IUjOHmdyzuZls8xRPxMfh6/sKFY3xI/QfZegY0j25fnfhyG5HemIeRbCdjNq IMsHB+PNIQWVx438vBJAxVHldxUsPb1bX/L+KH8TcqnZ9p45M5/Pm/xfqt7DA5bSB3xc trrQ== X-Gm-Message-State: AOAM5307JJlmAOBEiYyzZmGs9P4K3C2CkrpS24DcS8nnBTOYFMjupU1J BmrEZ4j5ykNfxvnbJd2TIwc= X-Received: by 2002:a05:6214:5297:b0:435:aa83:d639 with SMTP id kj23-20020a056214529700b00435aa83d639mr22908168qvb.107.1647373148181; Tue, 15 Mar 2022 12:39:08 -0700 (PDT) Received: from ishi.. (072-189-064-222.res.spectrum.com. [72.189.64.222]) by smtp.gmail.com with ESMTPSA id o4-20020a05620a22c400b0067e02a697e0sm1440798qki.33.2022.03.15.12.39.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Mar 2022 12:39:07 -0700 (PDT) From: William Breathitt Gray To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Oleksij Rempel , William Breathitt Gray Subject: [RESEND PATCH 3/6] counter: add new COUNTER_EVENT_CHANGE_OF_STATE Date: Tue, 15 Mar 2022 15:38:54 -0400 Message-Id: <486a5de67414470449efb84d06a2f2214f4bb31d.1647373009.git.vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 From: Oleksij Rempel Add new counter event to notify user space about every new counter pulse. Signed-off-by: Oleksij Rempel Link: https://lore.kernel.org/r/20220203135727.2374052-2-o.rempel@pengutronix.de Signed-off-by: William Breathitt Gray --- include/uapi/linux/counter.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/counter.h b/include/uapi/linux/counter.h index d0aa95aeff7b..96c5ffd368ad 100644 --- a/include/uapi/linux/counter.h +++ b/include/uapi/linux/counter.h @@ -61,6 +61,8 @@ enum counter_event_type { COUNTER_EVENT_THRESHOLD, /* Index signal detected */ COUNTER_EVENT_INDEX, + /* State of counter is changed */ + COUNTER_EVENT_CHANGE_OF_STATE, }; /** -- 2.35.1