Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: qcom: Move lpass_pcm_data structure to lpass header

Declare lpass_pcm_data structure in lpass header file instead of
platform source file to make common use of it by other drivers

Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com>
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/1645716828-15305-2-git-send-email-quic_srivasam@quicinc.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Srinivasa Rao Mandadapu and committed by
Mark Brown
74190d7c 1f197351

+5 -5
-5
sound/soc/qcom/lpass-platform.c
··· 18 18 19 19 #define DRV_NAME "lpass-platform" 20 20 21 - struct lpass_pcm_data { 22 - int dma_ch; 23 - int i2s_port; 24 - }; 25 - 26 21 #define LPASS_PLATFORM_BUFFER_SIZE (24 * 2 * 1024) 27 22 #define LPASS_PLATFORM_PERIODS 2 28 23
+5
sound/soc/qcom/lpass.h
··· 257 257 int num_clks; 258 258 }; 259 259 260 + struct lpass_pcm_data { 261 + int dma_ch; 262 + int i2s_port; 263 + }; 264 + 260 265 /* register the platform driver from the CPU DAI driver */ 261 266 int asoc_qcom_lpass_platform_register(struct platform_device *); 262 267 int asoc_qcom_lpass_cpu_platform_remove(struct platform_device *pdev);