Re: [PATCH 1/4] soundwire: bus: add of_sdw_find_device_by_node helper

From: Dmitry Baryshkov
Date: Fri Jun 27 2025 - 22:02:31 EST


On Fri, Jun 27, 2025 at 04:51:00PM +0100, srinivas.kandagatla@xxxxxxxxxxxxxxxx wrote:
> From: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxxxxxxxx>
>
> There has been more than 3 instances of this helper in multiple codec
> drivers, it does not make sense to keep duplicating this part of code.
>
> Lets add a helper of_sdw_find_device_by_node for codec drivers to use it.
>
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxxxxxxxx>
> ---
> drivers/soundwire/slave.c | 6 ++++++
> include/linux/soundwire/sdw.h | 9 +++++++++
> 2 files changed, 15 insertions(+)
>

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>


--
With best wishes
Dmitry