aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Gibson <[email protected]>2024-01-09 22:02:20 +0800
committerBartosz Golaszewski <[email protected]>2024-01-22 09:52:15 +0100
commitead7c5817cff33aff2762b43caec6bc5b8dfff9a (patch)
tree9838d957cfba7811eae96e6eba4b3bfb22212683
parenta6beb0b46121d9667208f367d99ca17b9daf7a0c (diff)
gpio: uapi: document possible values of gpioevent_data.id
Clarify the possible values of event id, rather than requiring the reader to infer. Signed-off-by: Kent Gibson <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
-rw-r--r--include/uapi/linux/gpio.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/gpio.h b/include/uapi/linux/gpio.h
index 3ba8996e496c..e68a56969f36 100644
--- a/include/uapi/linux/gpio.h
+++ b/include/uapi/linux/gpio.h
@@ -490,7 +490,8 @@ struct gpioevent_request {
/**
* struct gpioevent_data - The actual event being pushed to userspace
* @timestamp: best estimate of time of event occurrence, in nanoseconds
- * @id: event identifier
+ * @id: event identifier, one of %GPIOEVENT_EVENT_RISING_EDGE or
+ * %GPIOEVENT_EVENT_FALLING_EDGE
*
* Note: This struct is part of ABI v1 and is deprecated.
* Use &struct gpio_v2_line_event instead.