Re: [PATCH v2 8/8] iio: adc: ti-ads112c14: add measurement channel support
From: David Lechner
Date: Thu Jul 02 2026 - 10:24:43 EST
On 7/2/26 4:18 AM, Andy Shevchenko wrote:
> On Wed, Jul 01, 2026 at 09:20:19PM +0100, Jonathan Cameron wrote:
>> On Thu, 25 Jun 2026 16:55:10 -0500
>> "David Lechner (TI)" <dlechner@xxxxxxxxxxxx> wrote:
>
> ...
>
>>> + device_for_each_named_child_node_scoped(dev, child, "channel") {
>>> + struct ads112c14_measurement *measurement = &data->measurements[i];
>>> + struct iio_chan_spec *spec = &channels[i];
>
>>> + if (!fwnode_device_is_available(child))
>>> + continue;
>
> Also drop this dup check.
>
How is this duplicate? device_for_each_named_child_node_scoped()
doesn't check this.