[PATCH 03/20] clk: qcom: convert to of_property_for_each_u32_new()

From: Luca Ceresoli
Date: Wed Jul 03 2024 - 06:39:21 EST


Simplify code using of_property_for_each_u32_new() as the two additional
parameters in of_property_for_each_u32() are not used here.

Signed-off-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>
---
drivers/clk/qcom/common.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/clk/qcom/common.c b/drivers/clk/qcom/common.c
index 48f81e3a5e80..43e4918dc4e9 100644
--- a/drivers/clk/qcom/common.c
+++ b/drivers/clk/qcom/common.c
@@ -226,11 +226,9 @@ EXPORT_SYMBOL_GPL(qcom_cc_register_sleep_clk);
static void qcom_cc_drop_protected(struct device *dev, struct qcom_cc *cc)
{
struct device_node *np = dev->of_node;
- struct property *prop;
- const __be32 *p;
u32 i;

- of_property_for_each_u32(np, "protected-clocks", prop, p, i) {
+ of_property_for_each_u32_new(np, "protected-clocks", i) {
if (i >= cc->num_rclks)
continue;


--
2.34.1