]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
spi: spi-mem: export spi_mem_default_supports_op()
authorNaga Sureshkumar Relli <naga.sureshkumar.relli@xilinx.com>
Mon, 1 Apr 2019 07:59:00 +0000 (13:29 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 3 Apr 2019 04:23:54 +0000 (11:23 +0700)
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>
drivers/spi/spi-mem.c
include/linux/spi/spi-mem.h

index a4d8d19ecff9706ff302a1e9a256f4ec32ba0dd9..3397fd10cf8dc94c06284258d804f436ca0e65b0 100644 (file)
@@ -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;
index 3703d0dcac2e8f674a0de021676aa294947bc43a..c845cd6e22ba6e591d16798d4fc279c4db352766 100644 (file)
@@ -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)