[PATCH v7] spi: orion.c: Add direct access mode
Mark Brown
broonie at kernel.org
Mon May 2 08:44:41 PDT 2016
On Mon, May 02, 2016 at 01:19:24PM +0200, Stefan Roese wrote:
> + if ((orion_spi->direct_access[cs].vaddr) && (xfer->tx_buf) &&
> + (word_len == 8)) {
> + unsigned int cnt = count >> 2;
> + unsigned int rem = count % 4;
For the benefit of readers please write divisions as divisions and let
the compiler figure out if they can be turned into shifts.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160502/bf2b69b6/attachment.sig>
More information about the linux-arm-kernel
mailing list