diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2013-07-02 19:10:29 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-15 12:37:14 +0200 |
commit | f7ef1da9e22ce390333645fc0ea70ff279eecd55 (patch) | |
tree | 4172a2fea9d74b3d57147a02039910a190784579 /tools | |
parent | spi: spi-ep93xx: don't bother calculating the divisors in ep93xx_spi_setup() (diff) | |
download | linux-f7ef1da9e22ce390333645fc0ea70ff279eecd55.tar.xz linux-f7ef1da9e22ce390333645fc0ea70ff279eecd55.zip |
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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions