sb/intel/i82371eb/isa: make IOAPIC ID const

Since the local IOAPIC ID variable is initialized as 2 and never changed
afterwards, so make it const to make this more obvious.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I1f19cc43b44a938758a43346f4fa75f8ed39ddea
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80349
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Felix Held 2024-02-05 17:24:49 +01:00
parent b5d244ccf2
commit 10942bfb21
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ static void isa_init(struct device *dev)
*/ */
if (CONFIG(IOAPIC)) { if (CONFIG(IOAPIC)) {
u16 reg16; u16 reg16;
u8 ioapic_id = 2; const u8 ioapic_id = 2;
/* Enable IOAPIC. */ /* Enable IOAPIC. */
reg16 = pci_read_config16(dev, XBCS); reg16 = pci_read_config16(dev, XBCS);