aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/sof/intel/pci-mtl.c
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>2023-07-17 13:45:10 +0200
committerTakashi Iwai <tiwai@suse.de>2023-07-18 14:22:24 +0200
commita9022f4bec01f98f21106d66c81dfdacc57fe759 (patch)
tree77d93bf498f94d0698f9ddbf7af7c2c76c904856 /sound/soc/sof/intel/pci-mtl.c
parentASoC: Intel: Skylake: Convert to PCI device IDs defines (diff)
downloadwireguard-linux-a9022f4bec01f98f21106d66c81dfdacc57fe759.tar.xz
wireguard-linux-a9022f4bec01f98f21106d66c81dfdacc57fe759.zip
ASoC: SOF: Intel: Convert to PCI device IDs defines
Use PCI device IDs from pci_ids.h header and while at it change to using PCI_DEVICE_DATA() macro, to simplify declarations. Acked-by: Mark Brown <broonie@kernel.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Link: https://lore.kernel.org/r/20230717114511.484999-15-amadeuszx.slawinski@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/sof/intel/pci-mtl.c')
-rw-r--r--sound/soc/sof/intel/pci-mtl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/sof/intel/pci-mtl.c b/sound/soc/sof/intel/pci-mtl.c
index e276e1e37fed..7868b0827e84 100644
--- a/sound/soc/sof/intel/pci-mtl.c
+++ b/sound/soc/sof/intel/pci-mtl.c
@@ -52,8 +52,7 @@ static const struct sof_dev_desc mtl_desc = {
/* PCI IDs */
static const struct pci_device_id sof_pci_ids[] = {
- { PCI_DEVICE(0x8086, 0x7E28), /* MTL */
- .driver_data = (unsigned long)&mtl_desc},
+ { PCI_DEVICE_DATA(INTEL, HDA_MTL, &mtl_desc) },
{ 0, }
};
MODULE_DEVICE_TABLE(pci, sof_pci_ids);