]> git.baikalelectronics.ru Git - kernel.git/commit
spi: Expose spi_{map,unmap}_buf() for internal use
authorBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 22 Apr 2018 18:35:14 +0000 (20:35 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 23 Apr 2018 14:48:06 +0000 (15:48 +0100)
commitb3e03e7e4da472509d70a4df86210bcaa7108f86
treee5bfdfe55d71e6d5aab874f760f6916211fb35c7
parent3a22897a51f1f1c9e500d9337b9f5368ea568f5c
spi: Expose spi_{map,unmap}_buf() for internal use

spi_{map,unmap}_buf() are needed by the spi-mem logic that is about to
be introduced to prepare data buffer for DMA operations.

Remove the static specifier on these functions and add their prototypes
to drivers/spi/internals.h. We do not export the symbols here because
both SPI_MEM and SPI can't be enabled as modules and we'd like to
prevent controller/device drivers from using these functions.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/internals.h [new file with mode: 0644]
drivers/spi/spi.c