spi: spi-ep93xx: move the clock divider calcs into ep93xx_spi_chip_setup()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 2 Jul 2013 17:10:29 +0000 (10:10 -0700)
committerMark Brown <broonie@linaro.org>
Mon, 15 Jul 2013 10:37:14 +0000 (11:37 +0100)
commitf7ef1da9e22ce390333645fc0ea70ff279eecd55
tree4172a2fea9d74b3d57147a02039910a190784579
parent22c1b69ea833de84a9505135303ff443e62b3b15
spi: spi-ep93xx: move the clock divider calcs into ep93xx_spi_chip_setup()

The divider values stored in the per chip data are only used to set the
registers in the hardware to generate the desired SPI clock. Since these
are calculated per transfer based on the t->speed_hz there is no reason
keep them in the per chip data.

Move the ep93xx_spi_calc_divisors() call into ep93xx_spi_chip_setup()
and return the dividers thru pointers. Remove the divider values from
the per chip data structure.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Mika Westerberg <mika.westerberg@iki.fi>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-ep93xx.c