diff options
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); |