aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-omap2/omap_twl.c8
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
63unsigned long twl4030_vsel_to_uv(const u8 vsel) 63static 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
68u8 twl4030_uv_to_vsel(unsigned long uv) 68static 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
73unsigned long twl6030_vsel_to_uv(const u8 vsel) 73static 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
105u8 twl6030_uv_to_vsel(unsigned long uv) 105static 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