aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/common/lpss_i2c.h
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-10 13:46:32 -0800
committerMartin Roth <martinroth@google.com>2017-03-13 17:08:51 +0100
commit20727813bb14872788d36426c507f911866c2fcc (patch)
tree565783d7909014c14b3cfd543b78f8760fc399e2 /src/soc/intel/common/lpss_i2c.h
parent68ab0b5d1f7993735c6b113a624259bbf443ae98 (diff)
soc/intel/common: Fix unsigned warnings
Fix the following warning detected by checkpatach.pl: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' TEST=Build and run on Galileo Gen2 Change-Id: Ic266c077eb115e0c7d934c15bcc4cc9b9e530a39 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18756 Tested-by: build bot (Jenkins) Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/intel/common/lpss_i2c.h')
-rw-r--r--src/soc/intel/common/lpss_i2c.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/intel/common/lpss_i2c.h b/src/soc/intel/common/lpss_i2c.h
index 19cf6ce299..dbfabf3631 100644
--- a/src/soc/intel/common/lpss_i2c.h
+++ b/src/soc/intel/common/lpss_i2c.h
@@ -79,13 +79,13 @@ struct lpss_i2c_bus_config {
* This function *must* be implemented by the SOC and return the appropriate
* base address for the I2C registers that correspond to the provided bus.
*/
-uintptr_t lpss_i2c_base_address(unsigned bus);
+uintptr_t lpss_i2c_base_address(unsigned int bus);
/*
* Generate I2C timing information into the SSDT for the OS driver to consume,
* optionally applying override values provided by the caller.
*/
-void lpss_i2c_acpi_fill_ssdt(unsigned bus,
+void lpss_i2c_acpi_fill_ssdt(unsigned int bus,
const struct lpss_i2c_bus_config *bcfg);
/*
@@ -97,6 +97,6 @@ void lpss_i2c_acpi_fill_ssdt(unsigned bus,
* The SOC *must* define CONFIG_SOC_INTEL_COMMON_LPSS_I2C_CLOCK for the
* bus speed calculation to be correct.
*/
-int lpss_i2c_init(unsigned bus, const struct lpss_i2c_bus_config *bcfg);
+int lpss_i2c_init(unsigned int bus, const struct lpss_i2c_bus_config *bcfg);
#endif