mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-29 22:36:48 +07:00
bcma: use consistent case for 'hex' constants
Signed-off-by: Nathan Hintz <nlhintz@hotmail.com> Acked-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
b09e9abd09
commit
660b9caaad
@ -106,7 +106,7 @@ static int bcma_extpci_read_config(struct bcma_drv_pci *pc, unsigned int dev,
|
|||||||
} else {
|
} else {
|
||||||
addr = BCMA_CORE_PCI_PCICFG0;
|
addr = BCMA_CORE_PCI_PCICFG0;
|
||||||
addr |= (func << 8);
|
addr |= (func << 8);
|
||||||
addr |= (off & 0xfc);
|
addr |= (off & 0xFC);
|
||||||
val = pcicore_read32(pc, addr);
|
val = pcicore_read32(pc, addr);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -119,7 +119,7 @@ static int bcma_extpci_read_config(struct bcma_drv_pci *pc, unsigned int dev,
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
if (mips_busprobe32(val, mmio)) {
|
if (mips_busprobe32(val, mmio)) {
|
||||||
val = 0xffffffff;
|
val = 0xFFFFFFFF;
|
||||||
goto unmap;
|
goto unmap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -171,7 +171,7 @@ static int bcma_extpci_write_config(struct bcma_drv_pci *pc, unsigned int dev,
|
|||||||
} else {
|
} else {
|
||||||
addr = BCMA_CORE_PCI_PCICFG0;
|
addr = BCMA_CORE_PCI_PCICFG0;
|
||||||
addr |= (func << 8);
|
addr |= (func << 8);
|
||||||
addr |= (off & 0xfc);
|
addr |= (off & 0xFC);
|
||||||
val = pcicore_read32(pc, addr);
|
val = pcicore_read32(pc, addr);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -184,7 +184,7 @@ static int bcma_extpci_write_config(struct bcma_drv_pci *pc, unsigned int dev,
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
if (mips_busprobe32(val, mmio)) {
|
if (mips_busprobe32(val, mmio)) {
|
||||||
val = 0xffffffff;
|
val = 0xFFFFFFFF;
|
||||||
goto unmap;
|
goto unmap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -280,7 +280,7 @@ static u8 __devinit bcma_find_pci_capability(struct bcma_drv_pci *pc,
|
|||||||
/* check for Header type 0 */
|
/* check for Header type 0 */
|
||||||
bcma_extpci_read_config(pc, dev, func, PCI_HEADER_TYPE, &byte_val,
|
bcma_extpci_read_config(pc, dev, func, PCI_HEADER_TYPE, &byte_val,
|
||||||
sizeof(u8));
|
sizeof(u8));
|
||||||
if ((byte_val & 0x7f) != PCI_HEADER_TYPE_NORMAL)
|
if ((byte_val & 0x7F) != PCI_HEADER_TYPE_NORMAL)
|
||||||
return cap_ptr;
|
return cap_ptr;
|
||||||
|
|
||||||
/* check if the capability pointer field exists */
|
/* check if the capability pointer field exists */
|
||||||
|
Loading…
Reference in New Issue
Block a user