sb/intel/i82801gx: Use 'const' to set pci_devfn_t statically
Change-Id: I4b33b42f41c7e34c5eab70edf2f12862816220d8 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40226 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
25d20d3332
commit
eb00e8722b
|
@ -8,7 +8,7 @@
|
||||||
static void enable_spi_prefetch(void)
|
static void enable_spi_prefetch(void)
|
||||||
{
|
{
|
||||||
u8 reg8;
|
u8 reg8;
|
||||||
pci_devfn_t dev = PCI_DEV(0, 0x1f, 0);
|
const pci_devfn_t dev = PCI_DEV(0, 0x1f, 0);
|
||||||
|
|
||||||
reg8 = pci_read_config8(dev, BIOS_CNTL);
|
reg8 = pci_read_config8(dev, BIOS_CNTL);
|
||||||
reg8 &= ~(3 << 2);
|
reg8 &= ~(3 << 2);
|
||||||
|
|
|
@ -14,7 +14,7 @@ uintptr_t smbus_base(void)
|
||||||
int smbus_enable_iobar(uintptr_t base)
|
int smbus_enable_iobar(uintptr_t base)
|
||||||
{
|
{
|
||||||
/* Set the SMBus device statically. */
|
/* Set the SMBus device statically. */
|
||||||
pci_devfn_t dev = PCI_DEV(0x0, 0x1f, 0x3);
|
const pci_devfn_t dev = PCI_DEV(0x0, 0x1f, 0x3);
|
||||||
|
|
||||||
/* Check to make sure we've got the right device. */
|
/* Check to make sure we've got the right device. */
|
||||||
if (pci_read_config16(dev, 0x2) != 0x27da)
|
if (pci_read_config16(dev, 0x2) != 0x27da)
|
||||||
|
|
Loading…
Reference in New Issue