Re: [PATCH] iio: adc: ad7173: simplify clock enable/disable

From: Jonathan Cameron
Date: Sun Jun 22 2025 - 10:26:46 EST


On Fri, 20 Jun 2025 09:30:46 -0500
David Lechner <dlechner@xxxxxxxxxxxx> wrote:

> Use devm_clk_get_enabled() instead of devm_clk_get(),
> clk_prepare_enable(), devm_add_action_or_reset() to simplify the
> code as it effectively does the same thing.
>
> We can also drop ext_clk from struct ad7173_state since it is not used
> anywhere else.
>
> Signed-off-by: David Lechner <dlechner@xxxxxxxxxxxx>
Applied.

Thanks,

Jonathan