ARM: SAMSUNG: Reduce size of struct clk.
authorBen Dooks <ben-linux@fluff.org>
Tue, 1 Dec 2009 01:24:37 +0000 (01:24 +0000)
committerBen Dooks <ben-linux@fluff.org>
Fri, 15 Jan 2010 08:10:10 +0000 (17:10 +0900)
commitb3bf41be06634d69959a68a2b53e1ffc92f0d103
tree7575fc3d60e9a2f99e74b2862e1b3a43b7df1f92
parent13bbd88504bfa0d205fa4121322869d8d7e083d0
ARM: SAMSUNG: Reduce size of struct clk.

Reduce the size of struct clk by 12 bytes and make defining clocks with
common implementation functions easier by moving the set_rate, get_rate,
round_rate and set_parent calls into a new structure called 'struct clk_ops'
and using that instead.

This change does make a few clocks larger as they need their own clk_ops,
but this is outweighed by the number of clocks with either no ops or having
a common set of ops.

Update all the users of this.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
13 files changed:
arch/arm/mach-s3c2412/clock.c
arch/arm/mach-s3c2440/clock.c
arch/arm/mach-s3c2442/clock.c
arch/arm/mach-s3c2443/clock.c
arch/arm/plat-s3c/clock.c
arch/arm/plat-s3c/pwm-clock.c
arch/arm/plat-s3c24xx/clock-dclk.c
arch/arm/plat-s3c24xx/s3c244x-clock.c
arch/arm/plat-s3c64xx/s3c6400-clock.c
arch/arm/plat-s5pc1xx/clock.c
arch/arm/plat-s5pc1xx/s5pc100-clock.c
arch/arm/plat-samsung/clock-clksrc.c
arch/arm/plat-samsung/include/plat/clock.h