Commit d25ec74c authored by Syed Saba Kareem's avatar Syed Saba Kareem Committed by Mark Brown

ASoC: amd: ps: update macros with ps platform naming convention

Update macros using ps platform naming convention.
Signed-off-by: default avatarSyed Saba Kareem <Syed.SabaKareem@amd.com>
Link: https://lore.kernel.org/r/20221116105938.762550-1-Syed.SabaKareem@amd.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent f56814af
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
#include <sound/acp63_chip_offset_byte.h> #include <sound/acp63_chip_offset_byte.h>
#define ACP_DEVICE_ID 0x15E2 #define ACP_DEVICE_ID 0x15E2
#define ACP6x_REG_START 0x1240000 #define ACP63_REG_START 0x1240000
#define ACP6x_REG_END 0x1250200 #define ACP63_REG_END 0x1250200
#define ACP6x_DEVS 3 #define ACP63_DEVS 3
#define ACP6x_PDM_MODE 1 #define ACP63_PDM_MODE 1
#define ACP_SOFT_RESET_SOFTRESET_AUDDONE_MASK 0x00010001 #define ACP_SOFT_RESET_SOFTRESET_AUDDONE_MASK 0x00010001
#define ACP_PGFSM_CNTL_POWER_ON_MASK 1 #define ACP_PGFSM_CNTL_POWER_ON_MASK 1
......
...@@ -21,7 +21,7 @@ struct acp63_dev_data { ...@@ -21,7 +21,7 @@ struct acp63_dev_data {
void __iomem *acp63_base; void __iomem *acp63_base;
struct resource *res; struct resource *res;
bool acp63_audio_mode; bool acp63_audio_mode;
struct platform_device *pdev[ACP6x_DEVS]; struct platform_device *pdev[ACP63_DEVS];
}; };
static int acp63_power_on(void __iomem *acp_base) static int acp63_power_on(void __iomem *acp_base)
...@@ -143,7 +143,7 @@ static int snd_acp63_probe(struct pci_dev *pci, ...@@ -143,7 +143,7 @@ static int snd_acp63_probe(struct pci_dev *pci,
const struct pci_device_id *pci_id) const struct pci_device_id *pci_id)
{ {
struct acp63_dev_data *adata; struct acp63_dev_data *adata;
struct platform_device_info pdevinfo[ACP6x_DEVS]; struct platform_device_info pdevinfo[ACP63_DEVS];
int index, ret; int index, ret;
int val = 0x00; int val = 0x00;
struct acpi_device *adev; struct acpi_device *adev;
...@@ -219,8 +219,8 @@ static int snd_acp63_probe(struct pci_dev *pci, ...@@ -219,8 +219,8 @@ static int snd_acp63_probe(struct pci_dev *pci,
adata->res->name = "acp_iomem"; adata->res->name = "acp_iomem";
adata->res->flags = IORESOURCE_MEM; adata->res->flags = IORESOURCE_MEM;
adata->res->start = addr; adata->res->start = addr;
adata->res->end = addr + (ACP6x_REG_END - ACP6x_REG_START); adata->res->end = addr + (ACP63_REG_END - ACP63_REG_START);
adata->acp63_audio_mode = ACP6x_PDM_MODE; adata->acp63_audio_mode = ACP63_PDM_MODE;
memset(&pdevinfo, 0, sizeof(pdevinfo)); memset(&pdevinfo, 0, sizeof(pdevinfo));
pdevinfo[0].name = "acp_ps_pdm_dma"; pdevinfo[0].name = "acp_ps_pdm_dma";
...@@ -237,7 +237,7 @@ static int snd_acp63_probe(struct pci_dev *pci, ...@@ -237,7 +237,7 @@ static int snd_acp63_probe(struct pci_dev *pci,
pdevinfo[2].id = 0; pdevinfo[2].id = 0;
pdevinfo[2].parent = &pci->dev; pdevinfo[2].parent = &pci->dev;
for (index = 0; index < ACP6x_DEVS; index++) { for (index = 0; index < ACP63_DEVS; index++) {
adata->pdev[index] = adata->pdev[index] =
platform_device_register_full(&pdevinfo[index]); platform_device_register_full(&pdevinfo[index]);
...@@ -312,8 +312,8 @@ static void snd_acp63_remove(struct pci_dev *pci) ...@@ -312,8 +312,8 @@ static void snd_acp63_remove(struct pci_dev *pci)
int ret, index; int ret, index;
adata = pci_get_drvdata(pci); adata = pci_get_drvdata(pci);
if (adata->acp63_audio_mode == ACP6x_PDM_MODE) { if (adata->acp63_audio_mode == ACP63_PDM_MODE) {
for (index = 0; index < ACP6x_DEVS; index++) for (index = 0; index < ACP63_DEVS; index++)
platform_device_unregister(adata->pdev[index]); platform_device_unregister(adata->pdev[index]);
} }
ret = acp63_deinit(adata->acp63_base, &pci->dev); ret = acp63_deinit(adata->acp63_base, &pci->dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment