Commit 96b008a1 authored by Venkata Prasad Potturu's avatar Venkata Prasad Potturu Committed by Mark Brown

ASoC: amd: acp: Modify const resource struct variable to generic

Change platform specific constant resource structure variable
to generic name.
Signed-off-by: default avatarVenkata Prasad Potturu <venkataprasad.potturu@amd.com>
Reviewed-by: default avatarVijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20220721062043.3016985-4-venkataprasad.potturu@amd.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent afde6727
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
static struct platform_device *dmic_dev; static struct platform_device *dmic_dev;
static struct platform_device *pdev; static struct platform_device *pdev;
static const struct resource acp3x_res[] = { static const struct resource acp_res[] = {
{ {
.start = 0, .start = 0,
.end = ACP3x_REG_END - ACP3x_REG_START, .end = ACP3x_REG_END - ACP3x_REG_START,
...@@ -75,16 +75,15 @@ static int acp_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id ...@@ -75,16 +75,15 @@ static int acp_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id
pci_set_master(pci); pci_set_master(pci);
res_acp = acp_res;
num_res = ARRAY_SIZE(acp_res);
switch (pci->revision) { switch (pci->revision) {
case 0x01: case 0x01:
res_acp = acp3x_res;
num_res = ARRAY_SIZE(acp3x_res);
chip->name = "acp_asoc_renoir"; chip->name = "acp_asoc_renoir";
chip->acp_rev = ACP3X_DEV; chip->acp_rev = ACP3X_DEV;
break; break;
case 0x6f: case 0x6f:
res_acp = acp3x_res;
num_res = ARRAY_SIZE(acp3x_res);
chip->name = "acp_asoc_rembrandt"; chip->name = "acp_asoc_rembrandt";
chip->acp_rev = ACP6X_DEV; chip->acp_rev = ACP6X_DEV;
break; break;
......
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