aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/common/icst525.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/common/icst525.c')
-rw-r--r--arch/arm/common/icst525.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/common/icst525.c b/arch/arm/common/icst525.c
index 34dc2e1b9efc..c1d22b7c4763 100644
--- a/arch/arm/common/icst525.c
+++ b/arch/arm/common/icst525.c
@@ -21,12 +21,12 @@
21 */ 21 */
22static unsigned char s2div[8] = { 10, 2, 8, 4, 5, 7, 9, 6 }; 22static unsigned char s2div[8] = { 10, 2, 8, 4, 5, 7, 9, 6 };
23 23
24unsigned long icst525_khz(const struct icst_params *p, struct icst_vco vco) 24unsigned long icst525_hz(const struct icst_params *p, struct icst_vco vco)
25{ 25{
26 return p->ref * 2 * (vco.v + 8) / ((vco.r + 2) * s2div[vco.s]); 26 return p->ref * 2 * (vco.v + 8) / ((vco.r + 2) * s2div[vco.s]);
27} 27}
28 28
29EXPORT_SYMBOL(icst525_khz); 29EXPORT_SYMBOL(icst525_hz);
30 30
31/* 31/*
32 * Ascending divisor S values. 32 * Ascending divisor S values.
@@ -34,7 +34,7 @@ EXPORT_SYMBOL(icst525_khz);
34static unsigned char idx2s[] = { 1, 3, 4, 7, 5, 2, 6, 0 }; 34static unsigned char idx2s[] = { 1, 3, 4, 7, 5, 2, 6, 0 };
35 35
36struct icst_vco 36struct icst_vco
37icst525_khz_to_vco(const struct icst_params *p, unsigned long freq) 37icst525_hz_to_vco(const struct icst_params *p, unsigned long freq)
38{ 38{
39 struct icst_vco vco = { .s = 1, .v = p->vd_max, .r = p->rd_max }; 39 struct icst_vco vco = { .s = 1, .v = p->vd_max, .r = p->rd_max };
40 unsigned long f; 40 unsigned long f;
@@ -92,4 +92,4 @@ icst525_khz_to_vco(const struct icst_params *p, unsigned long freq)
92 return vco; 92 return vco;
93} 93}
94 94
95EXPORT_SYMBOL(icst525_khz_to_vco); 95EXPORT_SYMBOL(icst525_hz_to_vco);