mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
Merge remote-tracking branch 'spi/topic/tegra' into spi-next
This commit is contained in:
commit
5b380cb152
3 changed files with 3 additions and 3 deletions
|
@ -267,7 +267,7 @@ static unsigned tegra_spi_calculate_curr_xfer_param(
|
|||
unsigned max_len;
|
||||
unsigned total_fifo_words;
|
||||
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue