[PATCH] net: Use of_property_read_bool() for boolean properties
Kalle Valo
kvalo at kernel.org
Mon Mar 13 17:57:31 AEDT 2023
Rob Herring <robh at kernel.org> writes:
> It is preferred to use typed property access functions (i.e.
> of_property_read_<type> functions) rather than low-level
> of_get_property/of_find_property functions for reading properties.
> Convert reading boolean properties to to of_property_read_bool().
>
> Signed-off-by: Rob Herring <robh at kernel.org>
> ---
> drivers/net/can/cc770/cc770_platform.c | 12 ++++++------
> drivers/net/ethernet/cadence/macb_main.c | 2 +-
> drivers/net/ethernet/davicom/dm9000.c | 4 ++--
> drivers/net/ethernet/freescale/fec_main.c | 2 +-
> drivers/net/ethernet/freescale/fec_mpc52xx.c | 2 +-
> drivers/net/ethernet/freescale/gianfar.c | 4 ++--
> drivers/net/ethernet/ibm/emac/core.c | 8 ++++----
> drivers/net/ethernet/ibm/emac/rgmii.c | 2 +-
> drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c | 3 +--
> drivers/net/ethernet/sun/niu.c | 2 +-
> drivers/net/ethernet/ti/cpsw-phy-sel.c | 3 +--
> drivers/net/ethernet/ti/netcp_ethss.c | 8 +++-----
> drivers/net/ethernet/via/via-velocity.c | 3 +--
> drivers/net/ethernet/xilinx/ll_temac_main.c | 9 ++++-----
> drivers/net/wan/fsl_ucc_hdlc.c | 11 +++--------
> drivers/net/wireless/ti/wlcore/spi.c | 3 +--
> net/ncsi/ncsi-manage.c | 4 ++--
> 17 files changed, 35 insertions(+), 47 deletions(-)
For wireless:
Acked-by: Kalle Valo <kvalo at kernel.org>
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
More information about the Linuxppc-dev
mailing list