From: Axel Lin Date: Thu, 29 Aug 2013 15:41:20 +0000 (+0800) Subject: spi: altera: Use DIV_ROUND_UP to calculate hw->bytes_per_word X-Git-Tag: v3.12-rc1~192^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f073d37de0468d517b1fb682b5bea5bfa9ce55c9;p=pandora-kernel.git 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 Acked-by: Thomas Chou Signed-off-by: Mark Brown --- Reading git-diff-tree failed