Commit b6747ef6 authored by Kent Gibson's avatar Kent Gibson Committed by Bartosz Golaszewski

gpio: uapi: clarify using v2 rather than v1

The documentation contains notes like
 This struct is part of ABI v1 and is deprecated.
 Use struct gpio_v2_line_info instead.

This could be interpreted to mean the structs can be directly
substituted in v1 calls.  Clarify that the user should use the
corresponding v2 ioctl() and structs.
Signed-off-by: default avatarKent Gibson <warthog618@gmail.com>
Reviewed-by: default avatarAndy Shevchenko <andy@kernel.org>
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent ead7c581
...@@ -333,7 +333,7 @@ struct gpio_v2_line_event { ...@@ -333,7 +333,7 @@ struct gpio_v2_line_event {
* also be empty if the consumer doesn't set this up * also be empty if the consumer doesn't set this up
* *
* Note: This struct is part of ABI v1 and is deprecated. * Note: This struct is part of ABI v1 and is deprecated.
* Use &struct gpio_v2_line_info instead. * Use ABI v2 and &struct gpio_v2_line_info instead.
*/ */
struct gpioline_info { struct gpioline_info {
__u32 line_offset; __u32 line_offset;
...@@ -368,7 +368,7 @@ enum { ...@@ -368,7 +368,7 @@ enum {
* at the end of the structure on 64-bit architectures. * at the end of the structure on 64-bit architectures.
* *
* Note: This struct is part of ABI v1 and is deprecated. * Note: This struct is part of ABI v1 and is deprecated.
* Use &struct gpio_v2_line_info_changed instead. * Use ABI v2 and &struct gpio_v2_line_info_changed instead.
*/ */
struct gpioline_info_changed { struct gpioline_info_changed {
struct gpioline_info info; struct gpioline_info info;
...@@ -409,7 +409,7 @@ struct gpioline_info_changed { ...@@ -409,7 +409,7 @@ struct gpioline_info_changed {
* a valid anonymous file descriptor representing the request * a valid anonymous file descriptor representing the request
* *
* Note: This struct is part of ABI v1 and is deprecated. * Note: This struct is part of ABI v1 and is deprecated.
* Use &struct gpio_v2_line_request instead. * Use ABI v2 and &struct gpio_v2_line_request instead.
*/ */
struct gpiohandle_request { struct gpiohandle_request {
__u32 lineoffsets[GPIOHANDLES_MAX]; __u32 lineoffsets[GPIOHANDLES_MAX];
...@@ -431,7 +431,7 @@ struct gpiohandle_request { ...@@ -431,7 +431,7 @@ struct gpiohandle_request {
* @padding: reserved for future use and should be zero filled * @padding: reserved for future use and should be zero filled
* *
* Note: This struct is part of ABI v1 and is deprecated. * Note: This struct is part of ABI v1 and is deprecated.
* Use &struct gpio_v2_line_config instead. * Use ABI v2 and &struct gpio_v2_line_config instead.
*/ */
struct gpiohandle_config { struct gpiohandle_config {
__u32 flags; __u32 flags;
...@@ -446,7 +446,7 @@ struct gpiohandle_config { ...@@ -446,7 +446,7 @@ struct gpiohandle_config {
* the desired target state * the desired target state
* *
* Note: This struct is part of ABI v1 and is deprecated. * Note: This struct is part of ABI v1 and is deprecated.
* Use &struct gpio_v2_line_values instead. * Use ABI v2 and &struct gpio_v2_line_values instead.
*/ */
struct gpiohandle_data { struct gpiohandle_data {
__u8 values[GPIOHANDLES_MAX]; __u8 values[GPIOHANDLES_MAX];
...@@ -471,7 +471,7 @@ struct gpiohandle_data { ...@@ -471,7 +471,7 @@ struct gpiohandle_data {
* valid anonymous file descriptor representing the request * valid anonymous file descriptor representing the request
* *
* Note: This struct is part of ABI v1 and is deprecated. * Note: This struct is part of ABI v1 and is deprecated.
* Use &struct gpio_v2_line_request instead. * Use ABI v2 and &struct gpio_v2_line_request instead.
*/ */
struct gpioevent_request { struct gpioevent_request {
__u32 lineoffset; __u32 lineoffset;
...@@ -494,7 +494,7 @@ struct gpioevent_request { ...@@ -494,7 +494,7 @@ struct gpioevent_request {
* %GPIOEVENT_EVENT_FALLING_EDGE * %GPIOEVENT_EVENT_FALLING_EDGE
* *
* Note: This struct is part of ABI v1 and is deprecated. * Note: This struct is part of ABI v1 and is deprecated.
* Use &struct gpio_v2_line_event instead. * Use ABI v2 and &struct gpio_v2_line_event instead.
*/ */
struct gpioevent_data { struct gpioevent_data {
__u64 timestamp; __u64 timestamp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment