From 7f8b0cd89c10621f456e3eebcd290d3946122d6d Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Sun, 10 Nov 2019 11:04:08 +0100 Subject: sb/i82801ix: Use macros instead of hard-coded IDs This patch replaces hard-coded PCI IDs with macros from pci_ids.h and cleans up some code. Change-Id: Ie6ea72ac49eb015ef5cbaa98ed2b3400072000b5 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/36705 Reviewed-by: Arthur Heymans Reviewed-by: HAOUAS Elyes Tested-by: build bot (Jenkins) --- src/southbridge/intel/i82801ix/lpc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/southbridge/intel/i82801ix/lpc.c') diff --git a/src/southbridge/intel/i82801ix/lpc.c b/src/southbridge/intel/i82801ix/lpc.c index 811b4b2820..d5417307e7 100644 --- a/src/southbridge/intel/i82801ix/lpc.c +++ b/src/southbridge/intel/i82801ix/lpc.c @@ -541,12 +541,12 @@ static struct device_operations device_ops = { }; static const unsigned short pci_device_ids[] = { - 0x2912, /* ICH9DH */ - 0x2914, /* ICH9DO */ - 0x2916, /* ICH9R */ - 0x2918, /* ICH9 */ - 0x2917, /* ICH9M-E */ - 0x2919, /* ICH9M */ + PCI_DEVICE_ID_INTEL_82801IH_LPC, /* ICH9DH */ + PCI_DEVICE_ID_INTEL_82801IO_LPC, /* ICH9DO */ + PCI_DEVICE_ID_INTEL_82801IR_LPC, /* ICH9R */ + PCI_DEVICE_ID_INTEL_82801IEM_LPC, /* ICH9M-E */ + PCI_DEVICE_ID_INTEL_82801IB_LPC, /* ICH9 */ + PCI_DEVICE_ID_INTEL_82801IBM_LPC, /* ICH9M */ 0 }; -- cgit v1.2.3