Skip to contentSkip to conversation

gpio: uapi: Fix gpio_v2_line_info_changed reference in kernel-doc

PATCH In review Karl Mehltretter 2 participants 2 messages Sep 11 – Sep 12

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: uapi: Fix gpio_v2_line_info_changed reference in kernel-doc

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
---
 include/uapi/linux/gpio.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/linux/gpio.h +1 -1
index f7cb8ae87df72cc3f35b0619f3c3c95798009c5a..7e77bb6bfaeddb72d33e98a0171925f1cae686f4 100644
@@ -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
Signature · 1 line
2.39.5 (Apple Git-154)
#1 lore raw
Quoted 5 lines · Karl Mehltretter

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.

Quoted 1 line

Use the correct struct name.

Code wise looks good to me.

Signature · 2 lines
With Best Regards,
Andy Shevchenko