Re: [PATCH v2 4/8] ASoC: codecs: wcd-common: move component ops to common

From: Dmitry Baryshkov
Date: Fri Aug 22 2025 - 07:28:37 EST


On Fri, Aug 22, 2025 at 11:49:23AM +0100, Srinivas Kandagatla wrote:
> component_ops for wcd97x, wcd938x, wcd939x soundwire codecs are exactly
> identlical, move them to common driver to remove this duplicate code.
>
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxxxxxxxx>
> ---
> sound/soc/codecs/wcd-common.c | 27 +++++++++++++++++++++++++++
> sound/soc/codecs/wcd-common.h | 1 +
> sound/soc/codecs/wcd937x-sdw.c | 29 ++---------------------------
> sound/soc/codecs/wcd938x-sdw.c | 20 ++------------------
> sound/soc/codecs/wcd939x-sdw.c | 29 ++---------------------------
> 5 files changed, 34 insertions(+), 72 deletions(-)
>

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


--
With best wishes
Dmitry