summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2025-01-11 03:22:05 +0300
committerWilliam Breathitt Gray <wbg@kernel.org>2025-02-05 07:22:04 +0300
commita1cd339599a8cff197805c9c71c9cab83cec59c2 (patch)
treec9c5092bec0c9f200f58edd1045dcd4f2e5cb027 /include/uapi/linux
parentbbb89c177208ad2557cb29ff04d4b13a37b36c23 (diff)
downloadlinux-a1cd339599a8cff197805c9c71c9cab83cec59c2.tar.xz
counter: add direction change event
Add COUNTER_EVENT_DIRECTION_CHANGE to be used by drivers to emit events when a counter detects a change in direction. Signed-off-by: David Lechner <dlechner@baylibre.com> Link: https://lore.kernel.org/r/20250110-counter-ti-eqep-add-direction-support-v2-2-c6b6f96d2db9@baylibre.com Signed-off-by: William Breathitt Gray <wbg@kernel.org>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/counter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/counter.h b/include/uapi/linux/counter.h
index 008a691c254b..350b45d616bb 100644
--- a/include/uapi/linux/counter.h
+++ b/include/uapi/linux/counter.h
@@ -65,6 +65,8 @@ enum counter_event_type {
COUNTER_EVENT_CHANGE_OF_STATE,
/* Count value captured */
COUNTER_EVENT_CAPTURE,
+ /* Direction change detected */
+ COUNTER_EVENT_DIRECTION_CHANGE,
};
/**