aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/common/icst307.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/common/icst307.c')
-rw-r--r--arch/arm/common/icst307.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/common/icst307.c b/arch/arm/common/icst307.c
index f6063c95e256..66c69e597b70 100644
--- a/arch/arm/common/icst307.c
+++ b/arch/arm/common/icst307.c
@@ -24,12 +24,12 @@
24 */ 24 */
25static unsigned char s2div[8] = { 10, 2, 8, 4, 5, 7, 3, 6 }; 25static unsigned char s2div[8] = { 10, 2, 8, 4, 5, 7, 3, 6 };
26 26
27unsigned long icst307_khz(const struct icst_params *p, struct icst_vco vco) 27unsigned long icst307_hz(const struct icst_params *p, struct icst_vco vco)
28{ 28{
29 return p->ref * 2 * (vco.v + 8) / ((vco.r + 2) * s2div[vco.s]); 29 return p->ref * 2 * (vco.v + 8) / ((vco.r + 2) * s2div[vco.s]);
30} 30}
31 31
32EXPORT_SYMBOL(icst307_khz); 32EXPORT_SYMBOL(icst307_hz);
33 33
34/* 34/*
35 * Ascending divisor S values. 35 * Ascending divisor S values.
@@ -37,7 +37,7 @@ EXPORT_SYMBOL(icst307_khz);
37static unsigned char idx2s[8] = { 1, 6, 3, 4, 7, 5, 2, 0 }; 37static unsigned char idx2s[8] = { 1, 6, 3, 4, 7, 5, 2, 0 };
38 38
39struct icst_vco 39struct icst_vco
40icst307_khz_to_vco(const struct icst_params *p, unsigned long freq) 40icst307_hz_to_vco(const struct icst_params *p, unsigned long freq)
41{ 41{
42 struct icst_vco vco = { .s = 1, .v = p->vd_max, .r = p->rd_max }; 42 struct icst_vco vco = { .s = 1, .v = p->vd_max, .r = p->rd_max };
43 unsigned long f; 43 unsigned long f;
@@ -94,4 +94,4 @@ icst307_khz_to_vco(const struct icst_params *p, unsigned long freq)
94 return vco; 94 return vco;
95} 95}
96 96
97EXPORT_SYMBOL(icst307_khz_to_vco); 97EXPORT_SYMBOL(icst307_hz_to_vco);