Re: [PATCH v3] iio: adc: ad7944: simplify adi,spi-mode property parsing

From: Jonathan Cameron
Date: Thu Mar 28 2024 - 09:23:35 EST


On Mon, 25 Mar 2024 14:40:36 -0500
David Lechner <dlechner@xxxxxxxxxxxx> wrote:

> This simplifies the adi,spi-mode property parsing by using
> device_property_match_property_string() instead of two separate
> functions. Also, the error return value is now more informative
> in cases where there was a problem parsing the property.
>
> Suggested-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>
> Signed-off-by: David Lechner <dlechner@xxxxxxxxxxxx>

For this I'd already picked up part of an earlier version so hopefully
the rebase of my togreg branch needed to take this didn't cause anyone
any major problems.

Anyhow, dropped earlier version in favour of this one.

Jonathan