diff options
author | Nishanth Menon <nm@ti.com> | 2011-01-03 13:58:29 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-01-07 16:33:07 -0500 |
commit | c84ff1cc48fa41ea1b86f76f61dd4767f1adb0cd (patch) | |
tree | 987dc0d3a19103bb51164df60063af5676492143 /arch/arm | |
parent | d0eadf6d10923a46609b682bb12657fdfc1afc18 (diff) |
OMAP2+: TWL: make conversion routines static
The uv_to_vsel, vsel_to_uv functions don't need to be exposed to the
world as they are used as function pointers. make them static.
Fixes sparse warnings:
arch/arm/mach-omap2/omap_twl.c:63:15: warning: symbol 'twl4030_vsel_to_uv' was not declared. Should it be static?
arch/arm/mach-omap2/omap_twl.c:68:4: warning: symbol 'twl4030_uv_to_vsel' was not declared. Should it be static?
arch/arm/mach-omap2/omap_twl.c:73:15: warning: symbol 'twl6030_vsel_to_uv' was not declared. Should it be static?
arch/arm/mach-omap2/omap_twl.c:105:4: warning: symbol 'twl6030_uv_to_vsel' was not declared. Should it be static?
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/omap_twl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/omap_twl.c b/arch/arm/mach-omap2/omap_twl.c index 15f8c6c1bb0f..65ab4e33cfca 100644 --- a/arch/arm/mach-omap2/omap_twl.c +++ b/arch/arm/mach-omap2/omap_twl.c | |||
@@ -60,17 +60,17 @@ static u8 smps_offset; | |||
60 | 60 | ||
61 | #define REG_SMPS_OFFSET 0xE0 | 61 | #define REG_SMPS_OFFSET 0xE0 |
62 | 62 | ||
63 | unsigned long twl4030_vsel_to_uv(const u8 vsel) | 63 | static unsigned long twl4030_vsel_to_uv(const u8 vsel) |
64 | { | 64 | { |
65 | return (((vsel * 125) + 6000)) * 100; | 65 | return (((vsel * 125) + 6000)) * 100; |
66 | } | 66 | } |
67 | 67 | ||
68 | u8 twl4030_uv_to_vsel(unsigned long uv) | 68 | static u8 twl4030_uv_to_vsel(unsigned long uv) |
69 | { | 69 | { |
70 | return DIV_ROUND_UP(uv - 600000, 12500); | 70 | return DIV_ROUND_UP(uv - 600000, 12500); |
71 | } | 71 | } |
72 | 72 | ||
73 | unsigned long twl6030_vsel_to_uv(const u8 vsel) | 73 | static unsigned long twl6030_vsel_to_uv(const u8 vsel) |
74 | { | 74 | { |
75 | /* | 75 | /* |
76 | * In TWL6030 depending on the value of SMPS_OFFSET | 76 | * In TWL6030 depending on the value of SMPS_OFFSET |
@@ -102,7 +102,7 @@ unsigned long twl6030_vsel_to_uv(const u8 vsel) | |||
102 | return ((((vsel - 1) * 125) + 6000)) * 100; | 102 | return ((((vsel - 1) * 125) + 6000)) * 100; |
103 | } | 103 | } |
104 | 104 | ||
105 | u8 twl6030_uv_to_vsel(unsigned long uv) | 105 | static u8 twl6030_uv_to_vsel(unsigned long uv) |
106 | { | 106 | { |
107 | /* | 107 | /* |
108 | * In TWL6030 depending on the value of SMPS_OFFSET | 108 | * In TWL6030 depending on the value of SMPS_OFFSET |