From: David Lechner Date: Sat, 11 Jan 2025 00:22:05 +0000 (-0600) Subject: counter: add direction change event X-Git-Tag: v6.15-rc1~78^2~9^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a1cd339599a8cff197805c9c71c9cab83cec59c2;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://lore.kernel.org/r/20250110-counter-ti-eqep-add-direction-support-v2-2-c6b6f96d2db9@baylibre.com Signed-off-by: William Breathitt Gray --- diff --git a/include/uapi/linux/counter.h b/include/uapi/linux/counter.h index 008a691c254bd..350b45d616bb1 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, }; /**