Commit 821093e1 authored by YueHaibing's avatar YueHaibing Committed by Tony Lindgren

ARM: OMAP2+: Make some functions static

Fix sparse warnings:

arch/arm/mach-omap2/pmic-cpcap.c:29:15: warning: symbol 'omap_cpcap_vsel_to_uv' was not declared. Should it be static?
arch/arm/mach-omap2/pmic-cpcap.c:43:15: warning: symbol 'omap_cpcap_uv_to_vsel' was not declared. Should it be static?
arch/arm/mach-omap2/pmic-cpcap.c:93:15: warning: symbol 'omap_max8952_vsel_to_uv' was not declared. Should it be static?
arch/arm/mach-omap2/pmic-cpcap.c:107:15: warning: symbol 'omap_max8952_uv_to_vsel' was not declared. Should it be static?
arch/arm/mach-omap2/pmic-cpcap.c:140:15: warning: symbol 'omap_fan535503_vsel_to_uv' was not declared. Should it be static?
arch/arm/mach-omap2/pmic-cpcap.c:155:15: warning: symbol 'omap_fan535508_vsel_to_uv' was not declared. Should it be static?
arch/arm/mach-omap2/pmic-cpcap.c:173:15: warning: symbol 'omap_fan535503_uv_to_vsel' was not declared. Should it be static?
arch/arm/mach-omap2/pmic-cpcap.c:192:15: warning: symbol 'omap_fan535508_uv_to_vsel' was not declared. Should it be static?
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 48738437
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
* 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.
*/ */
unsigned long omap_cpcap_vsel_to_uv(unsigned char vsel) static unsigned long omap_cpcap_vsel_to_uv(unsigned char vsel)
{ {
if (vsel > 0x44) if (vsel > 0x44)
vsel = 0x44; vsel = 0x44;
...@@ -40,7 +40,7 @@ unsigned long omap_cpcap_vsel_to_uv(unsigned char vsel) ...@@ -40,7 +40,7 @@ unsigned long omap_cpcap_vsel_to_uv(unsigned char vsel)
* 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.
*/ */
unsigned char omap_cpcap_uv_to_vsel(unsigned long uv) static unsigned char omap_cpcap_uv_to_vsel(unsigned long uv)
{ {
if (uv < 600000) if (uv < 600000)
uv = 600000; uv = 600000;
...@@ -90,7 +90,7 @@ static struct omap_voltdm_pmic omap_cpcap_iva = { ...@@ -90,7 +90,7 @@ static struct omap_voltdm_pmic omap_cpcap_iva = {
* 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.
*/ */
unsigned long omap_max8952_vsel_to_uv(unsigned char vsel) static unsigned long omap_max8952_vsel_to_uv(unsigned char vsel)
{ {
if (vsel > 0x3F) if (vsel > 0x3F)
vsel = 0x3F; vsel = 0x3F;
...@@ -104,7 +104,7 @@ unsigned long omap_max8952_vsel_to_uv(unsigned char vsel) ...@@ -104,7 +104,7 @@ unsigned long omap_max8952_vsel_to_uv(unsigned char vsel)
* 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.
*/ */
unsigned char omap_max8952_uv_to_vsel(unsigned long uv) static unsigned char omap_max8952_uv_to_vsel(unsigned long uv)
{ {
if (uv < 770000) if (uv < 770000)
uv = 770000; uv = 770000;
...@@ -137,7 +137,7 @@ static struct omap_voltdm_pmic omap443x_max8952_mpu = { ...@@ -137,7 +137,7 @@ static struct omap_voltdm_pmic omap443x_max8952_mpu = {
* 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.
*/ */
unsigned long omap_fan535503_vsel_to_uv(unsigned char vsel) static unsigned long omap_fan535503_vsel_to_uv(unsigned char vsel)
{ {
/* Extract bits[5:0] */ /* Extract bits[5:0] */
vsel &= 0x3F; vsel &= 0x3F;
...@@ -152,7 +152,7 @@ unsigned long omap_fan535503_vsel_to_uv(unsigned char vsel) ...@@ -152,7 +152,7 @@ unsigned long omap_fan535503_vsel_to_uv(unsigned char vsel)
* 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.
*/ */
unsigned long omap_fan535508_vsel_to_uv(unsigned char vsel) static unsigned long omap_fan535508_vsel_to_uv(unsigned char vsel)
{ {
/* Extract bits[5:0] */ /* Extract bits[5:0] */
vsel &= 0x3F; vsel &= 0x3F;
...@@ -170,7 +170,7 @@ unsigned long omap_fan535508_vsel_to_uv(unsigned char vsel) ...@@ -170,7 +170,7 @@ unsigned long omap_fan535508_vsel_to_uv(unsigned char vsel)
* 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.
*/ */
unsigned char omap_fan535503_uv_to_vsel(unsigned long uv) static unsigned char omap_fan535503_uv_to_vsel(unsigned long uv)
{ {
unsigned char vsel; unsigned char vsel;
if (uv < 750000) if (uv < 750000)
...@@ -189,7 +189,7 @@ unsigned char omap_fan535503_uv_to_vsel(unsigned long uv) ...@@ -189,7 +189,7 @@ unsigned char omap_fan535503_uv_to_vsel(unsigned long uv)
* 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.
*/ */
unsigned char omap_fan535508_uv_to_vsel(unsigned long uv) static unsigned char omap_fan535508_uv_to_vsel(unsigned long uv)
{ {
unsigned char vsel; unsigned char vsel;
if (uv < 750000) if (uv < 750000)
......
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