Merge remote-tracking branch 'spi/topic/tegra' into spi-next

This commit is contained in:
Mark Brown 2013-10-25 09:51:39 +01:00
commit 5b380cb152
3 changed files with 3 additions and 3 deletions

View file

@ -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;