diff mbox series

[RESEND,3/6] counter: add new COUNTER_EVENT_CHANGE_OF_STATE

Message ID 486a5de67414470449efb84d06a2f2214f4bb31d.1647373009.git.vilhelm.gray@gmail.com (mailing list archive)
State Handled Elsewhere
Headers show
Series Counter updates, cleanups, and features for 5.18 | expand

Commit Message

William Breathitt Gray March 15, 2022, 7:38 p.m. UTC
From: Oleksij Rempel <o.rempel@pengutronix.de>

Add new counter event to notify user space about every new counter
pulse.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.kernel.org/r/20220203135727.2374052-2-o.rempel@pengutronix.de
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.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 d0aa95aeff7b..96c5ffd368ad 100644
--- a/include/uapi/linux/counter.h
+++ b/include/uapi/linux/counter.h
@@ -61,6 +61,8 @@  enum counter_event_type {
 	COUNTER_EVENT_THRESHOLD,
 	/* Index signal detected */
 	COUNTER_EVENT_INDEX,
+	/* State of counter is changed */
+	COUNTER_EVENT_CHANGE_OF_STATE,
 };
 
 /**