summaryrefslogtreecommitdiffstats
path: root/arch/arm/common/icst525.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-01-16 17:27:28 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-05-02 10:35:29 +0200
commit39c0cb02db5b8fdfac76d506b7a008b70bc960e9 (patch)
tree30e79dcadb5f6c26bba5fcf585cc309e240ff948 /arch/arm/common/icst525.c
parentARM: Integrator: convert to use register definitions (diff)
downloadlinux-39c0cb02db5b8fdfac76d506b7a008b70bc960e9.tar.xz
linux-39c0cb02db5b8fdfac76d506b7a008b70bc960e9.zip
ARM: ICST: merge common ICST VCO structures
The structures for the ICST307 and ICST525 VCO devices are identical, so merge them together. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/common/icst525.c')
-rw-r--r--arch/arm/common/icst525.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/common/icst525.c b/arch/arm/common/icst525.c
index 3d377c5bdef6..fd5c2e7ed176 100644
--- a/arch/arm/common/icst525.c
+++ b/arch/arm/common/icst525.c
@@ -21,7 +21,7 @@
*/
static unsigned char s2div[8] = { 10, 2, 8, 4, 5, 7, 9, 6 };
-unsigned long icst525_khz(const struct icst525_params *p, struct icst525_vco vco)
+unsigned long icst525_khz(const struct icst_params *p, struct icst_vco vco)
{
return p->ref * 2 * (vco.v + 8) / ((vco.r + 2) * s2div[vco.s]);
}
@@ -33,10 +33,10 @@ EXPORT_SYMBOL(icst525_khz);
*/
static unsigned char idx2s[] = { 1, 3, 4, 7, 5, 2, 6, 0 };
-struct icst525_vco
-icst525_khz_to_vco(const struct icst525_params *p, unsigned long freq)
+struct icst_vco
+icst525_khz_to_vco(const struct icst_params *p, unsigned long freq)
{
- struct icst525_vco vco = { .s = 1, .v = p->vd_max, .r = p->rd_max };
+ struct icst_vco vco = { .s = 1, .v = p->vd_max, .r = p->rd_max };
unsigned long f;
unsigned int i = 0, rd, best = (unsigned int)-1;
@@ -94,10 +94,10 @@ icst525_khz_to_vco(const struct icst525_params *p, unsigned long freq)
EXPORT_SYMBOL(icst525_khz_to_vco);
-struct icst525_vco
-icst525_ps_to_vco(const struct icst525_params *p, unsigned long period)
+struct icst_vco
+icst525_ps_to_vco(const struct icst_params *p, unsigned long period)
{
- struct icst525_vco vco = { .s = 1, .v = p->vd_max, .r = p->rd_max };
+ struct icst_vco vco = { .s = 1, .v = p->vd_max, .r = p->rd_max };
unsigned long f, ps;
unsigned int i = 0, rd, best = (unsigned int)-1;