diff options
author | Hannu Heikkinen <ext-hannu.m.heikkinen@nokia.com> | 2011-02-24 20:31:33 +0100 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-02-24 20:44:37 +0100 |
commit | 57d9c10dd91f942f836592f407d6351e2969548a (patch) | |
tree | 38ffc12947c93bf96de66b88d4c719913e0477f0 /drivers/spi/spi_s3c24xx.c | |
parent | gpio/pca953x: Fix wrong pointer type (diff) | |
download | linux-57d9c10dd91f942f836592f407d6351e2969548a.tar.xz linux-57d9c10dd91f942f836592f407d6351e2969548a.zip |
spi/omap_mcspi: Off-by-one error in finding the right divisor
Off-by-one error, gave erroneous divisor value 16 if speed_hz is over zero but
less than OMAP2_MCSPI_MAX_FREQ / (1 << 15), that is, [1..1463].
Also few overly complex bit shifts in divisor fixed.
Also one dev_dgb line fixed, which indicated max speed exceeding transfer speed.
Introducing a new function omap2_mcspi_calc_divisor() for getting the right
divisor in omap2_mcspi_setup_transfer().
Signed-off-by: Phil Carmody <ext-phil.2.carmody@nokia.com>
Signed-off-by: Hannu Heikkinen <ext-hannu.m.heikkinen@nokia.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/spi_s3c24xx.c')
0 files changed, 0 insertions, 0 deletions