Re: [PATCH v5 07/11] iio: adc: ad4170: Add clock provider support
From: Andy Shevchenko
Date: Tue Jun 17 2025 - 02:24:56 EST
On Tue, Jun 17, 2025 at 12:11 AM David Lechner <dlechner@xxxxxxxxxxxx> wrote:
> On 6/10/25 3:33 PM, Marcelo Schmitt wrote:
...
> > + if (!device_property_read_bool(&st->spi->dev, "#clock-cells"))
>
> This isn't a flag, so device_property_present() is probably more correct.
>
> > + return 0;
Good catch! +1 to this, it must not be read_bool as it's not a boolean property.
--
With Best Regards,
Andy Shevchenko