Skip to content

Commit a1cd339

Browse files
dlechWilliam Breathitt Gray
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/20250110-counter-ti-eqep-add-direction-support-v2-2-c6b6f96d2db9@baylibre.com Signed-off-by: William Breathitt Gray <[email protected]>
1 parent bbb89c1 commit a1cd339

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/uapi/linux/counter.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ enum counter_event_type {
6565
COUNTER_EVENT_CHANGE_OF_STATE,
6666
/* Count value captured */
6767
COUNTER_EVENT_CAPTURE,
68+
/* Direction change detected */
69+
COUNTER_EVENT_DIRECTION_CHANGE,
6870
};
6971

7072
/**

0 commit comments

Comments
 (0)