diff mbox series

[RESEND] net: ethernet: xilinx: use of_property_read_bool() instead of of_get_property

Message ID 1649236646-4257-1-git-send-email-wangqing@vivo.com (mailing list archive)
State Accepted
Commit be8d9d05271c961dfe366793a3886f4bd6f39dca
Delegated to: Netdev Maintainers
Headers show
Series [RESEND] net: ethernet: xilinx: use of_property_read_bool() instead of of_get_property | expand

Checks

Context Check Description
netdev/tree_selection success Guessing tree name failed - patch did not apply

Commit Message

王擎 April 6, 2022, 9:17 a.m. UTC
From: Wang Qing <wangqing@vivo.com>

"little-endian" has no specific content, use more helper function
of_property_read_bool() instead of of_get_property()

Signed-off-by: Wang Qing <wangqing@vivo.com>
---
 drivers/net/ethernet/xilinx/ll_temac_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

patchwork-bot+netdevbpf@kernel.org April 6, 2022, 2:30 p.m. UTC | #1
Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Wed,  6 Apr 2022 02:17:26 -0700 you wrote:
> From: Wang Qing <wangqing@vivo.com>
> 
> "little-endian" has no specific content, use more helper function
> of_property_read_bool() instead of of_get_property()
> 
> Signed-off-by: Wang Qing <wangqing@vivo.com>
> 
> [...]

Here is the summary with links:
  - [RESEND] net: ethernet: xilinx: use of_property_read_bool() instead of of_get_property
    https://git.kernel.org/netdev/net-next/c/be8d9d05271c

You are awesome, thank you!
diff mbox series

Patch

diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c
index 869e362..3f6b9df
--- a/drivers/net/ethernet/xilinx/ll_temac_main.c
+++ b/drivers/net/ethernet/xilinx/ll_temac_main.c
@@ -1515,7 +1515,7 @@  static int temac_probe(struct platform_device *pdev)
 				of_node_put(dma_np);
 				return PTR_ERR(lp->sdma_regs);
 			}
-			if (of_get_property(dma_np, "little-endian", NULL)) {
+			if (of_property_read_bool(dma_np, "little-endian")) {
 				lp->dma_in = temac_dma_in32_le;
 				lp->dma_out = temac_dma_out32_le;
 			} else {