]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi: davinci: do not use temporary buffer if no transmit data provided
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Wed, 29 Sep 2010 07:01:54 +0000 (12:31 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:33 +0000 (18:38 +0530)
commitd3f7141cbf4580b2f18f93940df29cf0c15e7ef5
treeb8e168c11588653d0582db1faaa323a35bae4644
parentc29e3c60e75d1cc1262ac8af379738b6fd851f33
spi: davinci: do not use temporary buffer if no transmit data provided

Remove usage of temporary buffer when no transmit data is provided.
Instead, use the transmit register itself as the source of data.

By choosing the transmit register itself as the source of data, this
patch helps remove unnecessary accesses to memory when no real data
is being transmitted.

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