diff options
Diffstat (limited to 'arch/arm/common/icst307.c')
-rw-r--r-- | arch/arm/common/icst307.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/common/icst307.c b/arch/arm/common/icst307.c index 6d094c157540..2eebd960c01b 100644 --- a/arch/arm/common/icst307.c +++ b/arch/arm/common/icst307.c | |||
@@ -24,7 +24,7 @@ | |||
24 | */ | 24 | */ |
25 | static unsigned char s2div[8] = { 10, 2, 8, 4, 5, 7, 3, 6 }; | 25 | static unsigned char s2div[8] = { 10, 2, 8, 4, 5, 7, 3, 6 }; |
26 | 26 | ||
27 | unsigned long icst307_khz(const struct icst307_params *p, struct icst307_vco vco) | 27 | unsigned long icst307_khz(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 | } |
@@ -36,10 +36,10 @@ EXPORT_SYMBOL(icst307_khz); | |||
36 | */ | 36 | */ |
37 | static unsigned char idx2s[8] = { 1, 6, 3, 4, 7, 5, 2, 0 }; | 37 | static unsigned char idx2s[8] = { 1, 6, 3, 4, 7, 5, 2, 0 }; |
38 | 38 | ||
39 | struct icst307_vco | 39 | struct icst_vco |
40 | icst307_khz_to_vco(const struct icst307_params *p, unsigned long freq) | 40 | icst307_khz_to_vco(const struct icst_params *p, unsigned long freq) |
41 | { | 41 | { |
42 | struct icst307_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; |
44 | unsigned int i = 0, rd, best = (unsigned int)-1; | 44 | unsigned int i = 0, rd, best = (unsigned int)-1; |
45 | 45 | ||
@@ -96,10 +96,10 @@ icst307_khz_to_vco(const struct icst307_params *p, unsigned long freq) | |||
96 | 96 | ||
97 | EXPORT_SYMBOL(icst307_khz_to_vco); | 97 | EXPORT_SYMBOL(icst307_khz_to_vco); |
98 | 98 | ||
99 | struct icst307_vco | 99 | struct icst_vco |
100 | icst307_ps_to_vco(const struct icst307_params *p, unsigned long period) | 100 | icst307_ps_to_vco(const struct icst_params *p, unsigned long period) |
101 | { | 101 | { |
102 | struct icst307_vco vco = { .s = 1, .v = p->vd_max, .r = p->rd_max }; | 102 | struct icst_vco vco = { .s = 1, .v = p->vd_max, .r = p->rd_max }; |
103 | unsigned long f, ps; | 103 | unsigned long f, ps; |
104 | unsigned int i = 0, rd, best = (unsigned int)-1; | 104 | unsigned int i = 0, rd, best = (unsigned int)-1; |
105 | 105 | ||