]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: Use of_property_read_bool() for boolean properties
authorRob Herring <robh@kernel.org>
Tue, 14 Mar 2023 19:18:27 +0000 (14:18 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Mar 2023 17:41:28 +0000 (17:41 +0000)
commit1a87e641d8a50c30b63b1d90819bc607b4327596
treeaa5f4d14a851a739efe4baacda06ee7cf42fe999
parent65d63e82b19201a5b522ca4eb2d6dffe0b4b6a31
net: Use of_property_read_bool() for boolean properties

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 of_property_read_bool().

Reviewed-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> # for net/can
Acked-by: Kalle Valo <kvalo@kernel.org>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
Reviewed-by: Wei Fang <wei.fang@nxp.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
18 files changed:
drivers/net/can/cc770/cc770_platform.c
drivers/net/ethernet/cadence/macb_main.c
drivers/net/ethernet/davicom/dm9000.c
drivers/net/ethernet/freescale/fec_main.c
drivers/net/ethernet/freescale/fec_mpc52xx.c
drivers/net/ethernet/freescale/gianfar.c
drivers/net/ethernet/ibm/emac/core.c
drivers/net/ethernet/ibm/emac/rgmii.c
drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c
drivers/net/ethernet/sun/niu.c
drivers/net/ethernet/ti/cpsw-phy-sel.c
drivers/net/ethernet/ti/netcp_ethss.c
drivers/net/ethernet/via/via-velocity.c
drivers/net/ethernet/via/via-velocity.h
drivers/net/ethernet/xilinx/ll_temac_main.c
drivers/net/wan/fsl_ucc_hdlc.c
drivers/net/wireless/ti/wlcore/spi.c
net/ncsi/ncsi-manage.c