]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spi: spi-mem: export spi_mem_default_supports_op()
authorPratyush Yadav <p.yadav@ti.com>
Fri, 25 Jun 2021 19:17:05 +0000 (00:47 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 28 Jun 2021 06:25:31 +0000 (11:55 +0530)
Controllers can use this function to perform basic sanity checking on
the spi-mem op.

Reviewed-by: Sean Anderson <seanga2@gmail.com>
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
include/spi-mem.h

index fe249f77ba1a7a9c37736371969a36b7a29d6aed..de3c11c8e24a35342576e367096e510a00083652 100644 (file)
@@ -250,6 +250,9 @@ int spi_mem_adjust_op_size(struct spi_slave *slave, struct spi_mem_op *op);
 
 bool spi_mem_supports_op(struct spi_slave *slave, const struct spi_mem_op *op);
 
+bool spi_mem_default_supports_op(struct spi_slave *slave,
+                                const struct spi_mem_op *op);
+
 int spi_mem_exec_op(struct spi_slave *slave, const struct spi_mem_op *op);
 
 bool spi_mem_default_supports_op(struct spi_slave *mem,