Re: [PATCH v3 03/12] soundwire: bus: add sdw_slave_get_current_bank helper
From: Dmitry Baryshkov
Date: Fri Sep 05 2025 - 12:42:39 EST
On Fri, Sep 05, 2025 at 04:44:21PM +0100, Srinivas Kandagatla wrote:
> There has been 2 instances of this helper in codec drivers,
> it does not make sense to keep duplicating this part of code.
>
> Lets add a helper sdw_get_current_bank() for codec drivers to use it.
>
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxxxxxxxx>
> Acked-by: Vinod Koul <vkoul@xxxxxxxxxx>
> ---
> drivers/soundwire/bus.c | 12 ++++++++++++
> include/linux/soundwire/sdw.h | 8 ++++++++
> 2 files changed, 20 insertions(+)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
--
With best wishes
Dmitry