diff mbox series

[v2,1/3] mem: spi-mem: add declaration for spi_mem_default_supports_op

Message ID 20210125035521.23466-2-matt@traverse.com.au
State Accepted
Commit af6266c1c27add8beac7f3365c00b3525a9012c4
Headers show
Series [v2,1/3] mem: spi-mem: add declaration for spi_mem_default_supports_op | expand

Commit Message

Mathew McBride Jan. 25, 2021, 3:55 a.m. UTC
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>

---
 include/spi-mem.h | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.30.0

Comments

Pratyush Yadav Jan. 25, 2021, 8:50 a.m. UTC | #1
On 25/01/21 03:55AM, Mathew McBride wrote:
> 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>


> ---

>  include/spi-mem.h | 3 +++

>  1 file changed, 3 insertions(+)

> 

> 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);

> -- 

> 2.30.0

> 


-- 
Regards,
Pratyush Yadav
Texas Instruments India
diff mbox series

Patch

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);