summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-mem.c
diff options
context:
space:
mode:
authorNaga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>2019-04-01 09:59:00 +0200
committerMark Brown <broonie@kernel.org>2019-04-03 06:23:54 +0200
commit46109648052fe778c75f199d72255c899578d6f7 (patch)
treee00a3270e000148c310cda0d5f81ee7b74c41c72 /drivers/spi/spi-mem.c
parentspi: sh-msiof: Use BIT() and GENMASK() (diff)
downloadlinux-46109648052fe778c75f199d72255c899578d6f7.tar.xz
linux-46109648052fe778c75f199d72255c899578d6f7.zip
spi: spi-mem: export spi_mem_default_supports_op()
Export spi_mem_default_supports_op(), so that controller drivers can use this. spi-mem driver already exports this using EXPORT_SYMBOL, but not declared it in spi-mem.h. This patch declares spi_mem_default_supports_op() in spi-mem.h and also removes the static from the function prototype. Signed-off-by: Naga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-mem.c')
-rw-r--r--drivers/spi/spi-mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-mem.c b/drivers/spi/spi-mem.c
index a4d8d19ecff9..3397fd10cf8d 100644
--- a/drivers/spi/spi-mem.c
+++ b/drivers/spi/spi-mem.c
@@ -135,8 +135,8 @@ static int spi_check_buswidth_req(struct spi_mem *mem, u8 buswidth, bool tx)
return -ENOTSUPP;
}
-static bool spi_mem_default_supports_op(struct spi_mem *mem,
- const struct spi_mem_op *op)
+bool spi_mem_default_supports_op(struct spi_mem *mem,
+ const struct spi_mem_op *op)
{
if (spi_check_buswidth_req(mem, op->cmd.buswidth, true))
return false;