Skip to content
Commit f073d37d authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

spi: altera: Use DIV_ROUND_UP to calculate hw->bytes_per_word



The Altera SPI hardware can be configured to support data width from 1 to 32
since Quartus II 8.1. To avoid truncation by integer division, use DIV_ROUND_UP
to calculate hw->bytes_per_word.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarThomas Chou <thomas@wytron.com.tw>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent b3136f8f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment