diff options
author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2015-09-25 09:27:17 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-09-25 18:52:18 +0200 |
commit | 0eca7cf2696506006463b9d67bb6110c82d3e064 (patch) | |
tree | 3c565d772c82493825578b9395032f3d00f8ba6b /drivers/spi/spi-pxa2xx.h | |
parent | spi: pxa2xx: Remove cr0 variable from struct chip_data (diff) | |
download | linux-0eca7cf2696506006463b9d67bb6110c82d3e064.tar.xz linux-0eca7cf2696506006463b9d67bb6110c82d3e064.zip |
spi: pxa2xx: Set the max_speed_hz of the master
Carry input clock of the controller in max_speed_hz of struct spi_master
instead of in own driver data. They mean the same thing and more over now
the max_speed_hz is not even set here.
As an added bonus this allows SPI core to validate that transfer speed is
not beyond the maximum input clock. This is not a problem in spi-pxa2xx as
the driver doesn't use transfer speed parameter directly but via input
clock divider calculation which will top at divide by one. However it's
better to validate speed before passing it here.
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-pxa2xx.h')
-rw-r--r-- | drivers/spi/spi-pxa2xx.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/spi/spi-pxa2xx.h b/drivers/spi/spi-pxa2xx.h index b91bda26bfa8..fd7a7bc91b9f 100644 --- a/drivers/spi/spi-pxa2xx.h +++ b/drivers/spi/spi-pxa2xx.h @@ -46,9 +46,6 @@ struct driver_data { u32 clear_sr; u32 mask_sr; - /* Maximun clock rate */ - unsigned long max_clk_rate; - /* Message Transfer pump */ struct tasklet_struct pump_transfers; |