aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
authorNaga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>2019-04-01 13:29:00 +0530
committerMark Brown <broonie@kernel.org>2019-04-03 11:23:54 +0700
commit46109648052fe778c75f199d72255c899578d6f7 (patch)
treee00a3270e000148c310cda0d5f81ee7b74c41c72 /include/linux/spi
parentspi: sh-msiof: Use BIT() and GENMASK() (diff)
downloadlinux-dev-46109648052fe778c75f199d72255c899578d6f7.tar.xz
linux-dev-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 'include/linux/spi')
-rw-r--r--include/linux/spi/spi-mem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/spi/spi-mem.h b/include/linux/spi/spi-mem.h
index 3703d0dcac2e..c845cd6e22ba 100644
--- a/include/linux/spi/spi-mem.h
+++ b/include/linux/spi/spi-mem.h
@@ -341,6 +341,9 @@ int spi_mem_driver_register_with_owner(struct spi_mem_driver *drv,
void spi_mem_driver_unregister(struct spi_mem_driver *drv);
+bool spi_mem_default_supports_op(struct spi_mem *mem,
+ const struct spi_mem_op *op);
+
#define spi_mem_driver_register(__drv) \
spi_mem_driver_register_with_owner(__drv, THIS_MODULE)