spi: davinci: simplify calculation of edma acount value
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Thu, 19 Aug 2010 11:12:42 +0000 (16:12 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:28 +0000 (18:08 +0530)
commitb7ab24a0da96c8fc6d551ea87e82692299df6ac6
tree4bd08aeeb692fa29873f21803eb4c480dba5c730
parent6321be60edac6037ea76e9beef375c6ae2961765
spi: davinci: simplify calculation of edma acount value

The EDMA acount (called data_type in davinci_spi_bufs_dma())
is simply the bytes_per_word obtained in the transfer setup
function. The current code calculates the acount value from
bytes_per_word in a convoluted manner. Simplify the code.

Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Tested-By: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/spi/davinci_spi.c