diff mbox series

[v2,2/4] counter: add direction change event

Message ID 20250110-counter-ti-eqep-add-direction-support-v2-2-c6b6f96d2db9@baylibre.com (mailing list archive)
State Handled Elsewhere
Headers show
Series counter: ti-eqep: add direction support | expand

Commit Message

David Lechner Jan. 11, 2025, 12:22 a.m. UTC
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>
---
 include/uapi/linux/counter.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/include/uapi/linux/counter.h b/include/uapi/linux/counter.h
index 008a691c254bdb49b9c922d7591e755e82b38a84..350b45d616bb102c16f8b60e9039272db20d1be9 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,
 };
 
 /**