2013-01-12 10:47:19

by Nathan Hintz

[permalink] [raw]
Subject: [PATCH 5/5] bcma: use consistent case for 'hex' constants


Signed-off-by: Nathan Hintz <[email protected]>
---
drivers/bcma/driver_pci_host.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/bcma/driver_pci_host.c b/drivers/bcma/driver_pci_host.c
index 92800b4..d3bde6c 100644
--- a/drivers/bcma/driver_pci_host.c
+++ b/drivers/bcma/driver_pci_host.c
@@ -106,7 +106,7 @@ static int bcma_extpci_read_config(struct bcma_drv_pci *pc, unsigned int dev,
} else {
addr = BCMA_CORE_PCI_PCICFG0;
addr |= (func << 8);
- addr |= (off & 0xfc);
+ addr |= (off & 0xFC);
val = pcicore_read32(pc, addr);
}
} else {
@@ -119,7 +119,7 @@ static int bcma_extpci_read_config(struct bcma_drv_pci *pc, unsigned int dev,
goto out;

if (mips_busprobe32(val, mmio)) {
- val = 0xffffffff;
+ val = 0xFFFFFFFF;
goto unmap;
}
}
@@ -171,7 +171,7 @@ static int bcma_extpci_write_config(struct bcma_drv_pci *pc, unsigned int dev,
} else {
addr = BCMA_CORE_PCI_PCICFG0;
addr |= (func << 8);
- addr |= (off & 0xfc);
+ addr |= (off & 0xFC);
val = pcicore_read32(pc, addr);
}
} else {
@@ -184,7 +184,7 @@ static int bcma_extpci_write_config(struct bcma_drv_pci *pc, unsigned int dev,
goto out;

if (mips_busprobe32(val, mmio)) {
- val = 0xffffffff;
+ val = 0xFFFFFFFF;
goto unmap;
}
}
@@ -279,7 +279,7 @@ static u8 bcma_find_pci_capability(struct bcma_drv_pci *pc, unsigned int dev,
/* check for Header type 0 */
bcma_extpci_read_config(pc, dev, func, PCI_HEADER_TYPE, &byte_val,
sizeof(u8));
- if ((byte_val & 0x7f) != PCI_HEADER_TYPE_NORMAL)
+ if ((byte_val & 0x7F) != PCI_HEADER_TYPE_NORMAL)
return cap_ptr;

/* check if the capability pointer field exists */
--
1.7.7.6



2013-01-12 14:05:22

by Hauke Mehrtens

[permalink] [raw]
Subject: Re: [PATCH 5/5] bcma: use consistent case for 'hex' constants

On 01/12/2013 11:46 AM, Nathan Hintz wrote:
>
> Signed-off-by: Nathan Hintz <[email protected]>

Acked-by: Hauke Mehrtens <[email protected]>

> ---
> drivers/bcma/driver_pci_host.c | 10 +++++-----
> 1 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/bcma/driver_pci_host.c b/drivers/bcma/driver_pci_host.c
> index 92800b4..d3bde6c 100644
> --- a/drivers/bcma/driver_pci_host.c
> +++ b/drivers/bcma/driver_pci_host.c
> @@ -106,7 +106,7 @@ static int bcma_extpci_read_config(struct bcma_drv_pci *pc, unsigned int dev,
> } else {
> addr = BCMA_CORE_PCI_PCICFG0;
> addr |= (func << 8);
> - addr |= (off & 0xfc);
> + addr |= (off & 0xFC);
> val = pcicore_read32(pc, addr);
> }
> } else {
> @@ -119,7 +119,7 @@ static int bcma_extpci_read_config(struct bcma_drv_pci *pc, unsigned int dev,
> goto out;
>
> if (mips_busprobe32(val, mmio)) {
> - val = 0xffffffff;
> + val = 0xFFFFFFFF;
> goto unmap;
> }
> }
> @@ -171,7 +171,7 @@ static int bcma_extpci_write_config(struct bcma_drv_pci *pc, unsigned int dev,
> } else {
> addr = BCMA_CORE_PCI_PCICFG0;
> addr |= (func << 8);
> - addr |= (off & 0xfc);
> + addr |= (off & 0xFC);
> val = pcicore_read32(pc, addr);
> }
> } else {
> @@ -184,7 +184,7 @@ static int bcma_extpci_write_config(struct bcma_drv_pci *pc, unsigned int dev,
> goto out;
>
> if (mips_busprobe32(val, mmio)) {
> - val = 0xffffffff;
> + val = 0xFFFFFFFF;
> goto unmap;
> }
> }
> @@ -279,7 +279,7 @@ static u8 bcma_find_pci_capability(struct bcma_drv_pci *pc, unsigned int dev,
> /* check for Header type 0 */
> bcma_extpci_read_config(pc, dev, func, PCI_HEADER_TYPE, &byte_val,
> sizeof(u8));
> - if ((byte_val & 0x7f) != PCI_HEADER_TYPE_NORMAL)
> + if ((byte_val & 0x7F) != PCI_HEADER_TYPE_NORMAL)
> return cap_ptr;
>
> /* check if the capability pointer field exists */
>