soc/intel/cmn/cse: Fix return type for `devfn`
This patch fixes the return type for `devfn` variable inside heci_set_to_d0i3(). `PCI_DEVFN` macro returns `unsigned int` instead of `pci_devfn_t`. TEST=Able to build and boot to ChromeOS without any failure. Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: Ib3a575aa7d71cbe6932e823917b57c5558387433 Reviewed-on: https://review.coreboot.org/c/coreboot/+/64877 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com> Reviewed-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
parent
0b92aa618f
commit
5790956f37
|
@ -1012,7 +1012,7 @@ void cse_set_to_d0i3(void)
|
|||
void heci_set_to_d0i3(void)
|
||||
{
|
||||
for (int i = 0; i < CONFIG_MAX_HECI_DEVICES; i++) {
|
||||
pci_devfn_t devfn = PCI_DEVFN(PCH_DEV_SLOT_CSE, i);
|
||||
unsigned int devfn = PCI_DEVFN(PCH_DEV_SLOT_CSE, i);
|
||||
if (!is_cse_devfn_visible(devfn))
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue