summaryrefslogtreecommitdiff
path: root/src/northbridge/intel/e7505
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-04-22 16:39:20 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-05-18 07:02:05 +0000
commitd13bd05b7a94fc4744cba1a94280797f7c1ce3cd (patch)
tree638c43fb19f08a5b883a140fc28a9a0b733e69f9 /src/northbridge/intel/e7505
parent2b79203bdbccb3e807fa59acc9f7b841ca747e69 (diff)
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>
Diffstat (limited to 'src/northbridge/intel/e7505')
-rw-r--r--src/northbridge/intel/e7505/memmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/northbridge/intel/e7505/memmap.c b/src/northbridge/intel/e7505/memmap.c
index 92b2ae7740..b1ac3d1124 100644
--- a/src/northbridge/intel/e7505/memmap.c
+++ b/src/northbridge/intel/e7505/memmap.c
@@ -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);
}