[PATCH] gpio: uapi: Fix gpio_v2_line_info_changed reference in kernel-doc

Karl Mehltretter posted 1 patch 1 week, 6 days ago
include/uapi/linux/gpio.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] gpio: uapi: Fix gpio_v2_line_info_changed reference in kernel-doc
Posted by Karl Mehltretter 1 week, 6 days ago
The gpio_v2_line_changed_type comment names the containing struct as
gpio_v2_line_changed. This was a typo in the original GPIO uAPI v2
documentation; the struct containing event_type is named
gpio_v2_line_info_changed.

Use the correct struct name.

Fixes: b53911aa872d ("gpio: uapi: define uAPI v2")
Assisted-by: LLM
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
---
 include/uapi/linux/gpio.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/gpio.h b/include/uapi/linux/gpio.h
index f7cb8ae87df72cc3f35b0619f3c3c95798009c5a..7e77bb6bfaeddb72d33e98a0171925f1cae686f4 100644
--- a/include/uapi/linux/gpio.h
+++ b/include/uapi/linux/gpio.h
@@ -232,7 +232,7 @@ struct gpio_v2_line_info {
 };
 
 /**
- * enum gpio_v2_line_changed_type - &struct gpio_v2_line_changed.event_type
+ * enum gpio_v2_line_changed_type - &struct gpio_v2_line_info_changed.event_type
  * values
  * @GPIO_V2_LINE_CHANGED_REQUESTED: line has been requested
  * @GPIO_V2_LINE_CHANGED_RELEASED: line has been released
-- 
2.39.5 (Apple Git-154)
Re: [PATCH] gpio: uapi: Fix gpio_v2_line_info_changed reference in kernel-doc
Posted by Andy Shevchenko 1 week, 5 days ago
On Sat, Sep 12, 2026 at 1:41 AM Karl Mehltretter <kmehltretter@gmail.com> wrote:
>
> The gpio_v2_line_changed_type comment names the containing struct as
> gpio_v2_line_changed. This was a typo in the original GPIO uAPI v2
> documentation; the struct containing event_type is named
> gpio_v2_line_info_changed.

These two sentences almost override each other. Please, rephrase.

> Use the correct struct name.

Code wise looks good to me.

-- 
With Best Regards,
Andy Shevchenko