]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
counter: add direction change event
authorDavid Lechner <dlechner@baylibre.com>
Sat, 11 Jan 2025 00:22:05 +0000 (18:22 -0600)
committerWilliam Breathitt Gray <wbg@kernel.org>
Wed, 5 Feb 2025 04:22:04 +0000 (13:22 +0900)
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>
include/uapi/linux/counter.h

index 008a691c254bdb49b9c922d7591e755e82b38a84..350b45d616bb102c16f8b60e9039272db20d1be9 100644 (file)
@@ -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,
 };
 
 /**