]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
omap2 clock: use the struct clk round_rate field for clksel rate rounding code
authorPaul Walmsley <paul@pwsan.com>
Mon, 27 Aug 2007 08:39:13 +0000 (02:39 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 31 Aug 2007 18:12:53 +0000 (11:12 -0700)
commit7d1aa149839f587ef39bbc33a0e406913f589d6a
tree9c25e21a11e7db21dc3676fcb81765948e5ead41
parent4476190196459bf1651f7d6e1511579c6257c941
omap2 clock: use the struct clk round_rate field for clksel rate rounding code

The OMAP clock framework struct clk contains a field, .round_rate,
that is intended to contain a function pointer to rate rounding code.
Take advantage of it by converting all clksel clocks' round_rate field
to point to omap2_clksel_round_rate().  Rename the existing
omap2_clksel_round_rate() to omap2_clksel_round_rate_div(), to signify
that it returns divisor information as well, and set up
omap2_clksel_round_rate() as a wrapper for the clock framework to use.
Simplify omap2_clk_round_rate() accordingly.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock.c
arch/arm/mach-omap2/clock.h