diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2018-04-26 00:00:22 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-04-30 06:22:13 +0000 |
commit | 9ba8f7c28e23c4064e09a40c383f2713ad955c25 (patch) | |
tree | bb0b22fb8cd6a0f01f4564b6042d6af62eb342f9 /src/arch | |
parent | ecef322bf4a1d2033286c10970f09663a1214ebb (diff) |
device: constify some variables
Change-Id: I6830a65bc9cea2907f4209bb97a53ccebcbf248d
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Reviewed-on: https://review.coreboot.org/25873
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/x86/mpspec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/x86/mpspec.c b/src/arch/x86/mpspec.c index 05605adf2e..7541eeb493 100644 --- a/src/arch/x86/mpspec.c +++ b/src/arch/x86/mpspec.c @@ -529,12 +529,12 @@ unsigned long __weak write_smp_table(unsigned long addr) struct drivers_generic_ioapic_config *ioapic_config; struct mp_config_table *mc; int isa_bus, pin, parentpin; - struct device *dev; - struct device *parent; - struct device *oldparent; + const struct device *dev; + const struct device *parent; + const struct device *oldparent; void *tmp, *v; int isaioapic = -1, have_fixed_entries; - struct pci_irq_info *pci_irq_info; + const struct pci_irq_info *pci_irq_info; v = smp_write_floating_table(addr, 0); mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN); |