diff mbox series

[v8,03/28] spi: spi-mem: export spi_mem_default_supports_op()

Message ID 20210401193133.18129-4-p.yadav@ti.com
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show
Series mtd: spi-nor-core: add xSPI Octal DTR support | expand

Commit Message

Pratyush Yadav April 1, 2021, 7:31 p.m. UTC
Controllers can use this function to perform basic sanity checking on
the spi-mem op.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
---
 include/spi-mem.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Sean Anderson April 2, 2021, 10:09 p.m. UTC | #1
On 4/1/21 3:31 PM, Pratyush Yadav wrote:
> Controllers can use this function to perform basic sanity checking on
> the spi-mem op.
> 
> Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
> ---
>   include/spi-mem.h | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/include/spi-mem.h b/include/spi-mem.h
> index 3e5b771045..dc53b517c1 100644
> --- a/include/spi-mem.h
> +++ b/include/spi-mem.h
> @@ -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,
> 

Reviewed-by: Sean Anderson <seanga2@gmail.com>

c.f. https://patchwork.ozlabs.org/project/uboot/patch/20210205041119.145784-5-seanga2@gmail.com/
diff mbox series

Patch

diff --git a/include/spi-mem.h b/include/spi-mem.h
index 3e5b771045..dc53b517c1 100644
--- a/include/spi-mem.h
+++ b/include/spi-mem.h
@@ -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,