summaryrefslogtreecommitdiff
path: root/include/spi-mem.h
diff options
context:
space:
mode:
authorMathew McBride <matt@traverse.com.au>2021-01-25 03:55:20 +0000
committerPriyanka Jain <priyanka.jain@nxp.com>2021-02-08 14:01:18 +0530
commitaf6266c1c27add8beac7f3365c00b3525a9012c4 (patch)
tree93e41b426a5738201ed3030590415ea6be07df94 /include/spi-mem.h
parent37bfd9cb50b829be07ebf8e6634bb3b5457b4a79 (diff)
downloadu-boot-af6266c1c27add8beac7f3365c00b3525a9012c4.tar.gz
u-boot-af6266c1c27add8beac7f3365c00b3525a9012c4.tar.bz2
u-boot-af6266c1c27add8beac7f3365c00b3525a9012c4.zip
mem: spi-mem: add declaration for spi_mem_default_supports_op
spi_mem_default_supports_op is used internally by controller drivers to verify operation semantics are correct. It is used internally inside spi-mem but has not (in U-Boot) been declared in spi-mem.h for external use. Signed-off-by: Mathew McBride <matt@traverse.com.au> Reviewed-by: Pratyush Yadav <p.yadav@ti.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'include/spi-mem.h')
-rw-r--r--include/spi-mem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/spi-mem.h b/include/spi-mem.h
index ca0f55c8fd..8be3e2bf6b 100644
--- a/include/spi-mem.h
+++ b/include/spi-mem.h
@@ -240,6 +240,9 @@ bool spi_mem_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,
+ const struct spi_mem_op *op);
+
#ifndef __UBOOT__
int spi_mem_driver_register_with_owner(struct spi_mem_driver *drv,
struct module *owner);