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
This commit is contained in:
Felix Singer
2019-11-21 21:23:32 +01:00
committed by Felix Held
parent 8ca1ada083
commit 838fbc71cf
8 changed files with 50 additions and 8 deletions

View File

@ -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,