From 9ba8f7c28e23c4064e09a40c383f2713ad955c25 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 26 Apr 2018 00:00:22 +0200 Subject: device: constify some variables Change-Id: I6830a65bc9cea2907f4209bb97a53ccebcbf248d Signed-off-by: Lubomir Rintel Reviewed-on: https://review.coreboot.org/25873 Reviewed-by: Aaron Durbin Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/arch/x86/mpspec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/arch/x86/mpspec.c') 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); -- cgit v1.2.3