Skip to contentSkip to conversation

net: ethernet: xilinx: use of_property_read_bool() instead of of_get_property

PATCH RESEND Applied Qing Wang 2 participants 2 messages Apr 6, 2022

Subsystems (4)
lore
Share & tools
lore

Qing Wang

author
#0 lore raw

PATCH RESEND 1/1 net: ethernet: xilinx: use of_property_read_bool() instead of of_get_property

From: Wang Qing <[email protected]>

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

---
 drivers/net/ethernet/xilinx/ll_temac_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/xilinx/ll_temac_main.c +1 -1
index 869e362..3f6b9df
@@ -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 {
Signature · 7 lines
2.7.4


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Quoted 8 lines · On Wed, 6 Apr 2022 02:17:26 -0700 you wrote:

From: Wang Qing <[email protected]>

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

[...]

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!

Signature · 9 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel