]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: Use of_property_present() for testing DT property presence
authorRob Herring <robh@kernel.org>
Fri, 10 Mar 2023 14:47:16 +0000 (08:47 -0600)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 Mar 2023 00:07:52 +0000 (17:07 -0700)
commitbcc858689db5f2e5a8d4d6e8bc5bb9736cd80626
treee44bb74d92fc4cb59651d2099c0e1c9e1ad41deb
parentb39212d5936c0fc3d4605abf2b51f734bf59ee11
net: Use of_property_present() for testing DT property presence

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. As
part of this, convert of_get_property/of_find_property calls to the
recently added of_property_present() helper when we just want to test
for presence of a property and nothing more.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230310144716.1544083-1-robh@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mdio/of_mdio.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c