Input: ad714x - use DMA-safe buffers for spi_write()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 22 Aug 2011 16:45:39 +0000 (09:45 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 22 Aug 2011 16:59:20 +0000 (09:59 -0700)
commitc0409feb86893f5ccf73964c7b2b47ca64bdb014
treecb889f2e239a6261e8b657979b932b32bae579da
parent6337de2204be3b7b40825a1d30de30e514e8947b
Input: ad714x - use DMA-safe buffers for spi_write()

spi_write() requires use of DMA-safe (cacheline aligned) buffers.
Also use the same buffers when reading data since to avoid extra
locking and potential memory allocation in spi_write_then_read().

Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/ad714x-i2c.c
drivers/input/misc/ad714x-spi.c
drivers/input/misc/ad714x.c
drivers/input/misc/ad714x.h