summaryrefslogtreecommitdiff
path: root/sound/soc/sof/intel/pci-tng.c
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>2023-07-17 14:45:10 +0300
committerTakashi Iwai <tiwai@suse.de>2023-07-18 15:22:24 +0300
commita9022f4bec01f98f21106d66c81dfdacc57fe759 (patch)
tree77d93bf498f94d0698f9ddbf7af7c2c76c904856 /sound/soc/sof/intel/pci-tng.c
parenta2db8743eda573de477e57319ea95ae088d6397c (diff)
downloadlinux-a9022f4bec01f98f21106d66c81dfdacc57fe759.tar.xz
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-tng.c')
-rw-r--r--sound/soc/sof/intel/pci-tng.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/sof/intel/pci-tng.c b/sound/soc/sof/intel/pci-tng.c
index 8c22a00266c0..4ae4fe17cc0b 100644
--- a/sound/soc/sof/intel/pci-tng.c
+++ b/sound/soc/sof/intel/pci-tng.c
@@ -225,8 +225,7 @@ static const struct sof_dev_desc tng_desc = {
/* PCI IDs */
static const struct pci_device_id sof_pci_ids[] = {
- { PCI_DEVICE(0x8086, 0x119a),
- .driver_data = (unsigned long)&tng_desc},
+ { PCI_DEVICE_DATA(INTEL, SST_TNG, &tng_desc) },
{ 0, }
};
MODULE_DEVICE_TABLE(pci, sof_pci_ids);