* [PATCH] net: ethernet: xilinx: use of_property_read_bool() instead of of_get_property
@ 2022-03-31 12:08 Qing Wang
2022-03-31 15:46 ` Jakub Kicinski
0 siblings, 1 reply; 2+ messages in thread
From: Qing Wang @ 2022-03-31 12:08 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski, Michal Simek, netdev,
linux-arm-kernel, linux-kernel
Cc: Wang Qing
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(-)
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 {
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: ethernet: xilinx: use of_property_read_bool() instead of of_get_property
2022-03-31 12:08 [PATCH] net: ethernet: xilinx: use of_property_read_bool() instead of of_get_property Qing Wang
@ 2022-03-31 15:46 ` Jakub Kicinski
0 siblings, 0 replies; 2+ messages in thread
From: Jakub Kicinski @ 2022-03-31 15:46 UTC (permalink / raw)
To: Qing Wang
Cc: David S. Miller, Michal Simek, netdev, linux-arm-kernel, linux-kernel
On Thu, 31 Mar 2022 05:08:55 -0700 Qing Wang 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>
# Form letter - net-next is closed
We have already sent the networking pull request for 5.18
and therefore net-next is closed for new drivers, features,
code refactoring and optimizations. We are currently accepting
bug fixes only.
Please repost when net-next reopens after 5.18-rc1 is cut.
RFC patches sent for review only are obviously welcome at any time.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-31 15:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-31 12:08 [PATCH] net: ethernet: xilinx: use of_property_read_bool() instead of of_get_property Qing Wang
2022-03-31 15:46 ` Jakub Kicinski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).