soc: ti: Use of_property_present() for testing DT property presence
authorRob Herring <robh@kernel.org>
Fri, 10 Mar 2023 14:47:25 +0000 (08:47 -0600)
committerNishanth Menon <nm@ti.com>
Sat, 11 Mar 2023 11:56:54 +0000 (05:56 -0600)
commit1b1b863a8898ad8348b7dfe812cab26cea9099bf
treea8870b96b09e26850bcb0ed0202ecdb3b32e0527
parent8f3c307b580a4a6425896007325bddefc36e8d91
soc: ti: 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>
Signed-off-by: Nishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/20230310144725.1545384-1-robh@kernel.org
drivers/soc/ti/knav_qmss_queue.c
drivers/soc/ti/omap_prm.c