diff options
author | Lee Leahy <leroy.p.leahy@intel.com> | 2017-03-09 10:05:29 -0800 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-03-13 17:45:16 +0100 |
commit | 0096d07274e067c7f6ec06f5cb658f79484b036f (patch) | |
tree | fae52d0706eff75a16015ce54a95a88fcbaca42f /src/soc/intel | |
parent | 4430f9f75d81007f8748327526522c8c774d10b3 (diff) |
soc/intel/apollolake: Fix unsigned warnings
Fix the following warning detected by checkpatch.pl:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
TEST=Build for reef
Change-Id: Ifc45ce90d466d087cd20af72ddfc8486d2f1492c
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-on: https://review.coreboot.org/18724
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/soc/intel')
-rw-r--r-- | src/soc/intel/apollolake/i2c.c | 4 | ||||
-rw-r--r-- | src/soc/intel/apollolake/i2c_early.c | 6 | ||||
-rw-r--r-- | src/soc/intel/apollolake/include/soc/i2c.h | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/soc/intel/apollolake/i2c.c b/src/soc/intel/apollolake/i2c.c index bb30c51c26..9aadc78b8c 100644 --- a/src/soc/intel/apollolake/i2c.c +++ b/src/soc/intel/apollolake/i2c.c @@ -26,9 +26,9 @@ #include <soc/pci_ids.h> #include "chip.h" -uintptr_t lpss_i2c_base_address(unsigned bus) +uintptr_t lpss_i2c_base_address(unsigned int bus) { - unsigned devfn; + unsigned int devfn; struct device *dev; struct resource *res; diff --git a/src/soc/intel/apollolake/i2c_early.c b/src/soc/intel/apollolake/i2c_early.c index 7c188a8544..bb002748f0 100644 --- a/src/soc/intel/apollolake/i2c_early.c +++ b/src/soc/intel/apollolake/i2c_early.c @@ -25,7 +25,7 @@ #include <soc/pci_devs.h> #include "chip.h" -static int i2c_early_init_bus(unsigned bus) +static int i2c_early_init_bus(unsigned int bus) { ROMSTAGE_CONST struct soc_intel_apollolake_config *config; ROMSTAGE_CONST struct device *tree_dev; @@ -78,9 +78,9 @@ static int i2c_early_init_bus(unsigned bus) return 0; } -uintptr_t lpss_i2c_base_address(unsigned bus) +uintptr_t lpss_i2c_base_address(unsigned int bus) { - unsigned devfn; + unsigned int devfn; pci_devfn_t dev; uintptr_t base; diff --git a/src/soc/intel/apollolake/include/soc/i2c.h b/src/soc/intel/apollolake/include/soc/i2c.h index da700f210d..de1a04af33 100644 --- a/src/soc/intel/apollolake/include/soc/i2c.h +++ b/src/soc/intel/apollolake/include/soc/i2c.h @@ -26,7 +26,7 @@ #define I2C_LPSS_RESET_RELEASE_IDMA (1 << 2) /* Convert I2C bus number to PCI device and function */ -static inline int i2c_bus_to_devfn(unsigned bus) +static inline int i2c_bus_to_devfn(unsigned int bus) { if (bus >= 0 && bus <= 3) return PCI_DEVFN(LPSS_DEV_SLOT_I2C_D0, bus); @@ -37,7 +37,7 @@ static inline int i2c_bus_to_devfn(unsigned bus) } /* Convert PCI device and function to I2C bus number */ -static inline int i2c_devfn_to_bus(unsigned devfn) +static inline int i2c_devfn_to_bus(unsigned int devfn) { if (PCI_SLOT(devfn) == LPSS_DEV_SLOT_I2C_D0) return PCI_FUNC(devfn); |