[PATCH 4.19.y-cip] spi: spi-mem: Make spi_mem_default_supports_op() static inline


Lad Prabhakar
 

From: YueHaibing <yuehaibing@...>

commit b5881b153bc81d63a5a7e82a35e8a4bdbe1f8c73 upstream.

Stub helper spi_mem_default_supports_op() should
be set to static inline

Signed-off-by: YueHaibing <yuehaibing@...>
Signed-off-by: Mark Brown <broonie@...>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@...>
---
Hi Pavel,

This is a incremental patch on top of series [1], as you pointed out in
patch [2] the function should be static, this patch fixes this issue
and is backported from upstream kernel.

[1] https://patchwork.kernel.org/project/cip-dev/list/?series=409359
[2] https://patchwork.kernel.org/project/cip-dev/patch/20210105135757
.11069-9-prabhakar.mahadev-lad.rj@.../

Cheers,
Prabhakar
---
include/linux/spi/spi-mem.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/include/linux/spi/spi-mem.h b/include/linux/spi/spi-mem.h
index 762b3974cf9c..46497e742e7f 100644
--- a/include/linux/spi/spi-mem.h
+++ b/include/linux/spi/spi-mem.h
@@ -315,6 +315,7 @@ spi_controller_dma_unmap_mem_op_data(struct spi_controller *ctlr,
{
}

+static inline
bool spi_mem_default_supports_op(struct spi_mem *mem,
const struct spi_mem_op *op)
{
--
2.17.1


Pavel Machek
 

Hi!

This is a incremental patch on top of series [1], as you pointed out in
patch [2] the function should be static, this patch fixes this issue
and is backported from upstream kernel.
Thank you! I pushed applied and pushed the three series leading to
this ("Add Renesas RPC-IF driver", "Add missing rpc-if clock on
RZ/G2{E,M,N} SoC'", "Optimize pinctrl and add QSPI[01] pins for
RZ/G2{H,M,N,E}".)

This looks okay to me, so I'll test it and push it in few minutes.

Best regards,
Pavel
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


Lad Prabhakar
 

Hi Pavel,

-----Original Message-----
From: Pavel Machek <pavel@...>
Sent: 06 January 2021 17:08
To: Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@...>
Cc: cip-dev@...; Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@...>; Pavel Machek
<pavel@...>; Biju Das <biju.das.jz@...>
Subject: Re: [PATCH 4.19.y-cip] spi: spi-mem: Make spi_mem_default_supports_op() static inline

Hi!

This is a incremental patch on top of series [1], as you pointed out in
patch [2] the function should be static, this patch fixes this issue
and is backported from upstream kernel.
Thank you! I pushed applied and pushed the three series leading to
this ("Add Renesas RPC-IF driver", "Add missing rpc-if clock on
RZ/G2{E,M,N} SoC'", "Optimize pinctrl and add QSPI[01] pins for
RZ/G2{H,M,N,E}".)

This looks okay to me, so I'll test it and push it in few minutes.
Thank you.

Cheers,
Prabhakar

Best regards,
Pavel
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


Pavel Machek
 

Hi!

commit b5881b153bc81d63a5a7e82a35e8a4bdbe1f8c73 upstream.

Stub helper spi_mem_default_supports_op() should
be set to static inline

Signed-off-by: YueHaibing <yuehaibing@...>
Signed-off-by: Mark Brown <broonie@...>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@...>
---
Hi Pavel,

This is a incremental patch on top of series [1], as you pointed out in
patch [2] the function should be static, this patch fixes this issue
and is backported from upstream kernel.
Thanks, applied and pushed out.

Best regards,
Pavel

--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany