nb/intel: Const'ify pci_devfn_t devices

Change-Id: Ib470523200929868280f57bb0cc82b038d2fedf6
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40610
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Elyes HAOUAS
2020-04-22 16:39:20 +02:00
committed by Patrick Georgi
parent 2b79203bdb
commit d13bd05b7a
2 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@
void *cbmem_top_chipset(void)
{
pci_devfn_t mch = PCI_DEV(0, 0, 0);
const pci_devfn_t mch = PCI_DEV(0, 0, 0);
uintptr_t tolm;
/* This is at 128 MiB boundary. */
@@ -26,7 +26,7 @@ void northbridge_write_smram(u8 smram);
void northbridge_write_smram(u8 smram)
{
pci_devfn_t mch = PCI_DEV(0, 0, 0);
const pci_devfn_t mch = PCI_DEV(0, 0, 0);
pci_write_config8(mch, SMRAMC, smram);
}