summaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-08-29 17:41:20 +0200
committerMark Brown <broonie@linaro.org>2013-08-31 15:10:41 +0200
commitf073d37de0468d517b1fb682b5bea5bfa9ce55c9 (patch)
treeb92e9fc29c88e73bf3fc6ac2f9c8ffb21539c830 /include/rdma
parentspi: simplify devm_request_mem_region/devm_ioremap (diff)
downloadlinux-f073d37de0468d517b1fb682b5bea5bfa9ce55c9.tar.xz
linux-f073d37de0468d517b1fb682b5bea5bfa9ce55c9.zip
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: Axel Lin <axel.lin@ingics.com> Acked-by: Thomas Chou <thomas@wytron.com.tw> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/rdma')
0 files changed, 0 insertions, 0 deletions