diff options
author | 2013-10-25 09:51:39 +0100 | |
---|---|---|
committer | 2013-10-25 09:51:39 +0100 | |
commit | 5b380cb1522e774e2fd67392532963426a749ce8 (patch) | |
tree | f8d0fcbebb14c387ed4dd71509aaa7af5a5ca9df /drivers/spi/spi-tegra20-slink.c | |
parent | Merge remote-tracking branch 'spi/topic/s3c64xx' into spi-next (diff) | |
parent | spi: tegra: Use DIV_ROUND_UP instead of open coded (diff) | |
download | linux-5b380cb1522e774e2fd67392532963426a749ce8.tar.gz linux-5b380cb1522e774e2fd67392532963426a749ce8.tar.bz2 linux-5b380cb1522e774e2fd67392532963426a749ce8.zip |
Merge remote-tracking branch 'spi/topic/tegra' into spi-next
Diffstat (limited to 'drivers/spi/spi-tegra20-slink.c')
-rw-r--r-- | drivers/spi/spi-tegra20-slink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c index 829283e785d9..c74ee87b243b 100644 --- a/drivers/spi/spi-tegra20-slink.c +++ b/drivers/spi/spi-tegra20-slink.c @@ -283,7 +283,7 @@ static unsigned tegra_slink_calculate_curr_xfer_param( unsigned total_fifo_words; bits_per_word = t->bits_per_word; - tspi->bytes_per_word = (bits_per_word - 1) / 8 + 1; + tspi->bytes_per_word = DIV_ROUND_UP(bits_per_word, 8); if (bits_per_word == 8 || bits_per_word == 16) { tspi->is_packed = 1; |