diff options
author | Rob Herring <robh@kernel.org> | 2023-03-10 08:47:19 -0600 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2023-04-18 16:01:37 -0500 |
commit | 9195ee1a1f76033eccb424b97ee647625b7af096 (patch) | |
tree | eba5cab6ce0305827b5202b0e753ca66af4dfc6c /CREDITS | |
parent | fe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff) | |
download | linux-9195ee1a1f76033eccb424b97ee647625b7af096.tar.gz linux-9195ee1a1f76033eccb424b97ee647625b7af096.tar.bz2 linux-9195ee1a1f76033eccb424b97ee647625b7af096.zip |
PCI: 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.
Link: https://lore.kernel.org/r/20230310144719.1544443-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> # pcie-mediatek
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions