summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-03-10 08:47:11 -0600
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2023-04-11 18:54:01 +0200
commit0f4afd529224aec36cc6d01d08ac7d5e92fb217c (patch)
tree31d0e4db10d618d1829db582fe81acc6f675cc60 /tools/perf/scripts/python
parent567f97bd381fd79fa8563808118fc757cb6fa4ff (diff)
downloadlinux-0f4afd529224aec36cc6d01d08ac7d5e92fb217c.tar.gz
linux-0f4afd529224aec36cc6d01d08ac7d5e92fb217c.zip
media: 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: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions