Re: [PATCH v2 4/4] iio: adc: ad7124: add clock output support

From: David Lechner
Date: Tue Aug 26 2025 - 12:04:34 EST


On 8/25/25 5:55 PM, David Lechner wrote:
> Add support for the AD7124's internal clock output. If the #clock-cells
> property is present, turn on the internal clock output during probe.
>

...

> @@ -1164,6 +1168,33 @@ static int ad7124_setup(struct ad7124_state *st)
> }
>
> clk_sel = AD7124_ADC_CONTROL_CLK_SEL_INT;
> + } else if (!device_property_present(dev, "clocks") &&
> + device_property_present(dev, "clock-names")) {

Found a mistake here. This should be #clock-cells rather than
clock-names.