Skip to contentSkip to conversation

Input: Fix kernel-doc for xps2_of_probe function

PATCH Applied Yang Li 3 participants 3 messages Mar 1, 2024 – Mar 3, 2024

Subsystems (3)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 Input: Fix kernel-doc for xps2_of_probe function

The existing comment block above the xps2_of_probe function does not conform to the kernel-doc standard. This patch fixes the documentation to match the expected kernel-doc format, which includes a structured documentation header with param and return value.

---
 drivers/input/serio/xilinx_ps2.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/input/serio/xilinx_ps2.c +1 -2
index d8f9faf2b529..bb758346a33d 100644
@@ -219,8 +219,7 @@ static void sxps2_close(struct serio *pserio)
 
 /**
  * xps2_of_probe - probe method for the PS/2 device.
- * @of_dev:	pointer to OF device structure
- * @match:	pointer to the structure used for matching a device
+ * @ofdev:	pointer to OF device structure
  *
  * This function probes the PS/2 device in the device tree.
  * It initializes the driver data structure and the hardware.
Signature · 1 line
2.20.1.7.g153144c
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Yang Li

The existing comment block above the xps2_of_probe function does not conform to the kernel-doc standard. This patch fixes the documentation to match the expected kernel-doc format, which includes a structured documentation header with param and return value.

---
  drivers/input/serio/xilinx_ps2.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
drivers/input/serio/xilinx_ps2.c +0 -0
index d8f9faf2b529..bb758346a33d 100644

drivers/input/serio/xilinx_ps2.c static void sxps2_close(struct serio *pserio) · line 225

Quoted 9 lines
drivers/input/serio/xilinx_ps2.c +1 -2
@@ -219,8 +219,7 @@ static void sxps2_close(struct serio *pserio)
 
  /**
   * xps2_of_probe - probe method for the PS/2 device.
- * @of_dev:	pointer to OF device structure
- * @match:	pointer to the structure used for matching a device
+ * @ofdev:	pointer to OF device structure
   *
   * This function probes the PS/2 device in the device tree.
   * It initializes the driver data structure and the hardware.

Thanks,
Michal

maintainer Applied
#2 lore raw
In reply to Yang Li
Quoted 6 lines · Yang Li

The existing comment block above the xps2_of_probe function does not conform to the kernel-doc standard. This patch fixes the documentation to match the expected kernel-doc format, which includes a structured documentation header with param and return value.

Applied, thank you.

Signature · 1 line
Dmitry