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/apollolake/include | |
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/apollolake/include')
-rw-r--r-- | src/soc/intel/apollolake/include/soc/i2c.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |