aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel/ibexpeak/smbus.c
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2019-11-21 21:23:32 +0100
committerFelix Held <felix-coreboot@felixheld.de>2020-03-20 23:14:52 +0000
commit838fbc71cf38b441a8a28ba04916c23a0b9dc80c (patch)
tree550794958ce463bcbadd17dc46517259044976d3 /src/southbridge/intel/ibexpeak/smbus.c
parent8ca1ada083e9029defb2d40f33702bd2553d113f (diff)
sb/ibexpeak: Use macros instead of hard-coded IDs
This patch replaces hard-coded PCI IDs with macros from pci_ids.h and adds the related IDs to it. The resulting binary doesn't differ from the one without this patch. Used documents: - Intel 322170 Change-Id: I3326f142d483f5008fb2ac878f30c1a3a72f500f Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37116 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Michael Niewöhner
Diffstat (limited to 'src/southbridge/intel/ibexpeak/smbus.c')
-rw-r--r--src/southbridge/intel/ibexpeak/smbus.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/southbridge/intel/ibexpeak/smbus.c b/src/southbridge/intel/ibexpeak/smbus.c
index eafb1ee2df..b06b1cd135 100644
--- a/src/southbridge/intel/ibexpeak/smbus.c
+++ b/src/southbridge/intel/ibexpeak/smbus.c
@@ -96,7 +96,12 @@ static struct device_operations smbus_ops = {
.ops_pci = &smbus_pci_ops,
};
-static const unsigned short pci_device_ids[] = { 0x1c22, 0x1e22, 0x3b30, 0 };
+static const unsigned short pci_device_ids[] = {
+ 0x1c22,
+ 0x1e22,
+ PCI_DID_INTEL_IBEXPEAK_SMBUS,
+ 0
+};
static const struct pci_driver pch_smbus __pci_driver = {
.ops = &smbus_ops,