summaryrefslogtreecommitdiff
path: root/sound/soc/amd/ps/acp63.h
diff options
context:
space:
mode:
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>2022-12-21 20:28:49 +0300
committerMark Brown <broonie@kernel.org>2022-12-26 02:33:36 +0300
commit1d325cdaf7a2747df42b43eed8b3de2e2d6c69bb (patch)
tree9c9446af43e70b9a114134ef855d4988b832e61c /sound/soc/amd/ps/acp63.h
parent2cdabbde0c24bb76978d57856cba958b85584c32 (diff)
downloadlinux-1d325cdaf7a2747df42b43eed8b3de2e2d6c69bb.tar.xz
ASoC: amd: ps: refactor platform device creation logic
Refactor platform device creation implementation. Based on platform dev count and pdev mask create platform devices. Use common API to fill platform dev information. Use pdev count variable in remove callback for unregistering platform devices. Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Link: https://lore.kernel.org/r/20221221172855.1618766-2-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/ps/acp63.h')
-rw-r--r--sound/soc/amd/ps/acp63.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/amd/ps/acp63.h b/sound/soc/amd/ps/acp63.h
index b015e845e5fa..8f024cb309c9 100644
--- a/sound/soc/amd/ps/acp63.h
+++ b/sound/soc/amd/ps/acp63.h
@@ -11,7 +11,6 @@
#define ACP63_REG_START 0x1240000
#define ACP63_REG_END 0x1250200
#define ACP63_DEVS 3
-#define ACP63_PDM_MODE 1
#define ACP_SOFT_RESET_SOFTRESET_AUDDONE_MASK 0x00010001
#define ACP_PGFSM_CNTL_POWER_ON_MASK 1
@@ -109,4 +108,5 @@ struct acp63_dev_data {
struct platform_device *pdev[ACP63_DEVS];
u16 pdev_mask;
u16 pdev_count;
+ u16 pdm_dev_index;
};