diff options
Diffstat (limited to 'drivers/spi/spi-tegra114.c')
-rw-r--r-- | drivers/spi/spi-tegra114.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-tegra114.c b/drivers/spi/spi-tegra114.c index bb3a19f2ed39..b3821fb9da3f 100644 --- a/drivers/spi/spi-tegra114.c +++ b/drivers/spi/spi-tegra114.c | |||
@@ -267,7 +267,7 @@ static unsigned tegra_spi_calculate_curr_xfer_param( | |||
267 | unsigned max_len; | 267 | unsigned max_len; |
268 | unsigned total_fifo_words; | 268 | unsigned total_fifo_words; |
269 | 269 | ||
270 | tspi->bytes_per_word = (bits_per_word - 1) / 8 + 1; | 270 | tspi->bytes_per_word = DIV_ROUND_UP(bits_per_word, 8); |
271 | 271 | ||
272 | if (bits_per_word == 8 || bits_per_word == 16) { | 272 | if (bits_per_word == 8 || bits_per_word == 16) { |
273 | tspi->is_packed = 1; | 273 | tspi->is_packed = 1; |