Message ID | ecb1a801749418c8b6e451b5bd4161057a3a3077.1742225817.git.mazziesaccount@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Support ROHM BD79124 ADC | expand |
diff --git a/drivers/media/i2c/thp7312.c b/drivers/media/i2c/thp7312.c index 8852c56431fe..104754b2ace2 100644 --- a/drivers/media/i2c/thp7312.c +++ b/drivers/media/i2c/thp7312.c @@ -2067,11 +2067,9 @@ static int thp7312_parse_dt(struct thp7312_device *thp7312) return -EINVAL; } - fwnode_for_each_available_child_node(sensors, node) { - if (fwnode_name_eq(node, "sensor")) { - if (!thp7312_sensor_parse_dt(thp7312, node)) - num_sensors++; - } + fwnode_for_each_available_named_child_node(sensors, node, "sensor") { + if (!thp7312_sensor_parse_dt(thp7312, node)) + num_sensors++; } fwnode_handle_put(sensors);