Commit d33bb8ff authored by Randy Dunlap's avatar Randy Dunlap Committed by Tony Lindgren

ARM: OMAP2+: pmic-cpcap: fix kernel-doc warnings

Use the correct function names in kernel-doc comments.
Use "Return[s]:" kernel-doc notation for function return values.

These changes prevent the following warnings:

pmic-cpcap.c:28: warning: expecting prototype for omap_cpcap_vsel_to_vdc(). Prototype was for omap_cpcap_vsel_to_uv() instead
pmic-cpcap.c:92: warning: expecting prototype for omap_max8952_vsel_to_vdc(). Prototype was for omap_max8952_vsel_to_uv() instead
pmic-cpcap.c:139: warning: expecting prototype for omap_fan5355_vsel_to_vdc(). Prototype was for omap_fan535503_vsel_to_uv() instead
pmic-cpcap.c:154: warning: expecting prototype for omap_fan535508_vsel_to_vdc(). Prototype was for omap_fan535508_vsel_to_uv() instead
pmic-cpcap.c:28: warning: No description found for return value of 'omap_cpcap_vsel_to_uv'
pmic-cpcap.c:42: warning: No description found for return value of 'omap_cpcap_uv_to_vsel'
pmic-cpcap.c:92: warning: No description found for return value of 'omap_max8952_vsel_to_uv'
pmic-cpcap.c:106: warning: No description found for return value of 'omap_max8952_uv_to_vsel'
pmic-cpcap.c:139: warning: No description found for return value of 'omap_fan535503_vsel_to_uv'
pmic-cpcap.c:154: warning: No description found for return value of 'omap_fan535508_vsel_to_uv'
pmic-cpcap.c:172: warning: No description found for return value of 'omap_fan535503_uv_to_vsel'
pmic-cpcap.c:191: warning: No description found for return value of 'omap_fan535508_uv_to_vsel'
Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Cc: Kevin Hilman <khilman@kernel.org>
Cc: Tony Lindgren <tony@atomide.com>
Cc: linux-omap@vger.kernel.org
Cc: Russell King <linux@armlinux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
Cc: patches@armlinux.org.uk
Message-ID: <20240117011004.22669-9-rdunlap@infradead.org>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 176a16fa
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
#include "vc.h" #include "vc.h"
/** /**
* omap_cpcap_vsel_to_vdc - convert CPCAP VSEL value to microvolts DC * omap_cpcap_vsel_to_uv - convert CPCAP VSEL value to microvolts DC
* @vsel: CPCAP VSEL value to convert * @vsel: CPCAP VSEL value to convert
* *
* Returns the microvolts DC that the CPCAP PMIC should generate when * Returns: the microvolts DC that the CPCAP PMIC should generate when
* programmed with @vsel. * programmed with @vsel.
*/ */
static unsigned long omap_cpcap_vsel_to_uv(unsigned char vsel) static unsigned long omap_cpcap_vsel_to_uv(unsigned char vsel)
...@@ -35,7 +35,7 @@ static unsigned long omap_cpcap_vsel_to_uv(unsigned char vsel) ...@@ -35,7 +35,7 @@ static unsigned long omap_cpcap_vsel_to_uv(unsigned char vsel)
* omap_cpcap_uv_to_vsel - convert microvolts DC to CPCAP VSEL value * omap_cpcap_uv_to_vsel - convert microvolts DC to CPCAP VSEL value
* @uv: microvolts DC to convert * @uv: microvolts DC to convert
* *
* Returns the VSEL value necessary for the CPCAP PMIC to * Returns: the VSEL value necessary for the CPCAP PMIC to
* generate an output voltage equal to or greater than @uv microvolts DC. * generate an output voltage equal to or greater than @uv microvolts DC.
*/ */
static unsigned char omap_cpcap_uv_to_vsel(unsigned long uv) static unsigned char omap_cpcap_uv_to_vsel(unsigned long uv)
...@@ -82,10 +82,10 @@ static struct omap_voltdm_pmic omap_cpcap_iva = { ...@@ -82,10 +82,10 @@ static struct omap_voltdm_pmic omap_cpcap_iva = {
}; };
/** /**
* omap_max8952_vsel_to_vdc - convert MAX8952 VSEL value to microvolts DC * omap_max8952_vsel_to_uv - convert MAX8952 VSEL value to microvolts DC
* @vsel: MAX8952 VSEL value to convert * @vsel: MAX8952 VSEL value to convert
* *
* Returns the microvolts DC that the MAX8952 Regulator should generate when * Returns: the microvolts DC that the MAX8952 Regulator should generate when
* programmed with @vsel. * programmed with @vsel.
*/ */
static unsigned long omap_max8952_vsel_to_uv(unsigned char vsel) static unsigned long omap_max8952_vsel_to_uv(unsigned char vsel)
...@@ -99,7 +99,7 @@ static unsigned long omap_max8952_vsel_to_uv(unsigned char vsel) ...@@ -99,7 +99,7 @@ static unsigned long omap_max8952_vsel_to_uv(unsigned char vsel)
* omap_max8952_uv_to_vsel - convert microvolts DC to MAX8952 VSEL value * omap_max8952_uv_to_vsel - convert microvolts DC to MAX8952 VSEL value
* @uv: microvolts DC to convert * @uv: microvolts DC to convert
* *
* Returns the VSEL value necessary for the MAX8952 Regulator to * Returns: the VSEL value necessary for the MAX8952 Regulator to
* generate an output voltage equal to or greater than @uv microvolts DC. * generate an output voltage equal to or greater than @uv microvolts DC.
*/ */
static unsigned char omap_max8952_uv_to_vsel(unsigned long uv) static unsigned char omap_max8952_uv_to_vsel(unsigned long uv)
...@@ -129,10 +129,10 @@ static struct omap_voltdm_pmic omap443x_max8952_mpu = { ...@@ -129,10 +129,10 @@ static struct omap_voltdm_pmic omap443x_max8952_mpu = {
}; };
/** /**
* omap_fan5355_vsel_to_vdc - convert FAN535503 VSEL value to microvolts DC * omap_fan535503_vsel_to_uv - convert FAN535503 VSEL value to microvolts DC
* @vsel: FAN535503 VSEL value to convert * @vsel: FAN535503 VSEL value to convert
* *
* Returns the microvolts DC that the FAN535503 Regulator should generate when * Returns: the microvolts DC that the FAN535503 Regulator should generate when
* programmed with @vsel. * programmed with @vsel.
*/ */
static unsigned long omap_fan535503_vsel_to_uv(unsigned char vsel) static unsigned long omap_fan535503_vsel_to_uv(unsigned char vsel)
...@@ -144,10 +144,10 @@ static unsigned long omap_fan535503_vsel_to_uv(unsigned char vsel) ...@@ -144,10 +144,10 @@ static unsigned long omap_fan535503_vsel_to_uv(unsigned char vsel)
} }
/** /**
* omap_fan535508_vsel_to_vdc - convert FAN535508 VSEL value to microvolts DC * omap_fan535508_vsel_to_uv - convert FAN535508 VSEL value to microvolts DC
* @vsel: FAN535508 VSEL value to convert * @vsel: FAN535508 VSEL value to convert
* *
* Returns the microvolts DC that the FAN535508 Regulator should generate when * Returns: the microvolts DC that the FAN535508 Regulator should generate when
* programmed with @vsel. * programmed with @vsel.
*/ */
static unsigned long omap_fan535508_vsel_to_uv(unsigned char vsel) static unsigned long omap_fan535508_vsel_to_uv(unsigned char vsel)
...@@ -165,7 +165,7 @@ static unsigned long omap_fan535508_vsel_to_uv(unsigned char vsel) ...@@ -165,7 +165,7 @@ static unsigned long omap_fan535508_vsel_to_uv(unsigned char vsel)
* omap_fan535503_uv_to_vsel - convert microvolts DC to FAN535503 VSEL value * omap_fan535503_uv_to_vsel - convert microvolts DC to FAN535503 VSEL value
* @uv: microvolts DC to convert * @uv: microvolts DC to convert
* *
* Returns the VSEL value necessary for the MAX8952 Regulator to * Returns: the VSEL value necessary for the MAX8952 Regulator to
* generate an output voltage equal to or greater than @uv microvolts DC. * generate an output voltage equal to or greater than @uv microvolts DC.
*/ */
static unsigned char omap_fan535503_uv_to_vsel(unsigned long uv) static unsigned char omap_fan535503_uv_to_vsel(unsigned long uv)
...@@ -184,7 +184,7 @@ static unsigned char omap_fan535503_uv_to_vsel(unsigned long uv) ...@@ -184,7 +184,7 @@ static unsigned char omap_fan535503_uv_to_vsel(unsigned long uv)
* omap_fan535508_uv_to_vsel - convert microvolts DC to FAN535508 VSEL value * omap_fan535508_uv_to_vsel - convert microvolts DC to FAN535508 VSEL value
* @uv: microvolts DC to convert * @uv: microvolts DC to convert
* *
* Returns the VSEL value necessary for the MAX8952 Regulator to * Returns: the VSEL value necessary for the MAX8952 Regulator to
* generate an output voltage equal to or greater than @uv microvolts DC. * generate an output voltage equal to or greater than @uv microvolts DC.
*/ */
static unsigned char omap_fan535508_uv_to_vsel(unsigned long uv) static unsigned char omap_fan535508_uv_to_vsel(unsigned long uv)
......
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