ARM: zynq: slcr: fix function prototype kernel-doc warnings
authorRandy Dunlap <rdunlap@infradead.org>
Sun, 14 Jan 2024 05:17:30 +0000 (21:17 -0800)
committerMichal Simek <michal.simek@amd.com>
Mon, 22 Jan 2024 13:21:33 +0000 (14:21 +0100)
Use the same name in the function prototype description and the function
to prevent kernel-doc warnings:

slcr.c:158: warning: expecting prototype for zynq_slcr_cpu_state(). Prototype was for zynq_slcr_cpu_state_read() instead
slcr.c:176: warning: expecting prototype for zynq_slcr_cpu_state(). Prototype was for zynq_slcr_cpu_state_write() instead

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Michal Simek <michal.simek@amd.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
Cc: patches@armlinux.org.uk
Link: https://lore.kernel.org/r/20240114051730.16796-1-rdunlap@infradead.org
Signed-off-by: Michal Simek <michal.simek@amd.com>
arch/arm/mach-zynq/slcr.c

index 9765b3f4c2fc5f7277732b202e391b8acd4e92bb..2636dec499adc962a6ad704ea7e6883cdec02797 100644 (file)
@@ -146,7 +146,7 @@ void zynq_slcr_cpu_stop(int cpu)
 }
 
 /**
- * zynq_slcr_cpu_state - Read/write cpu state
+ * zynq_slcr_cpu_state_read - Read cpu state
  * @cpu:       cpu number
  *
  * SLCR_REBOOT_STATUS save upper 2 bits (31/30 cpu states for cpu0 and cpu1)
@@ -165,7 +165,7 @@ bool zynq_slcr_cpu_state_read(int cpu)
 }
 
 /**
- * zynq_slcr_cpu_state - Read/write cpu state
+ * zynq_slcr_cpu_state_write - Write cpu state
  * @cpu:       cpu number
  * @die:       cpu state - true if cpu is going to die
  *