]> git.baikalelectronics.ru Git - kernel.git/commit
spi: s3c64xx: Use dmaengine_prep_slave_single() to prepare DMA transfers
authorTomasz Figa <tomasz.figa@gmail.com>
Sun, 11 Aug 2013 00:33:30 +0000 (02:33 +0200)
committerMark Brown <broonie@linaro.org>
Sun, 11 Aug 2013 13:06:30 +0000 (14:06 +0100)
commitb6701e1183f5570d81e42adb027610c5a31e54ee
tree952bebf17e27d9a05b113f509c82cc372669b762
parent75b3d16d52c9a33565b92cb95547f3cff6758cf1
spi: s3c64xx: Use dmaengine_prep_slave_single() to prepare DMA transfers

Since the driver supports only contiguous buffers, there is no need to
manually construct a scatterlist with just a single entry, when there is
a dedicated helper for this purpose.

This patch modifies prepare_dma() function to use available helper instead
of manually creating a scatterlist.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-s3c64xx.c