Re: [PATCH v2 8/8] iio: adc: ti-ads112c14: add measurement channel support
From: Andy Shevchenko
Date: Fri Jul 03 2026 - 01:56:29 EST
On Thu, Jul 02, 2026 at 09:18:41AM -0500, David Lechner wrote:
> 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.
It's checked by the respective implementations.
https://elixir.bootlin.com/linux/v7.1.2/source/drivers/of/property.c#L1129
--
With Best Regards,
Andy Shevchenko