From 9aee8194c46f31eeda6ee7419e40cad2de47187e Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Mon, 22 Jan 2018 20:29:25 -0700 Subject: drivers/i2c/designware: namespace soc functions Rename the following functions to ensure it's clear that the designware i2c host controller driver is the one that these functions are associated with: i2c_get_soc_cfg() -> dw_i2c_get_soc_cfg() i2c_get_soc_early_base() -> dw_i2c_get_soc_early_base() i2c_soc_devfn_to_bus() -> dw_i2c_soc_devfn_to_bus() i2c_soc_bus_to_devfn() -> dw_i2c_soc_bus_to_devfn() BUG=b:72121803 Change-Id: Idb7633b45a0bb7cb7433ef5f6b154e28474a7b6d Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/23371 Reviewed-by: Justin TerAvest Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh --- src/soc/intel/cannonlake/i2c.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/soc/intel/cannonlake/i2c.c') diff --git a/src/soc/intel/cannonlake/i2c.c b/src/soc/intel/cannonlake/i2c.c index 03ced5f936..f183253443 100644 --- a/src/soc/intel/cannonlake/i2c.c +++ b/src/soc/intel/cannonlake/i2c.c @@ -22,7 +22,7 @@ #include #include "chip.h" -const struct dw_i2c_bus_config *i2c_get_soc_cfg(unsigned int bus, +const struct dw_i2c_bus_config *dw_i2c_get_soc_cfg(unsigned int bus, const struct device *dev) { const struct soc_intel_cannonlake_config *config; @@ -37,12 +37,12 @@ const struct dw_i2c_bus_config *i2c_get_soc_cfg(unsigned int bus, return &config->i2c[bus]; } -uintptr_t i2c_get_soc_early_base(unsigned int bus) +uintptr_t dw_i2c_get_soc_early_base(unsigned int bus) { return EARLY_I2C_BASE(bus); } -int i2c_soc_devfn_to_bus(unsigned int devfn) +int dw_i2c_soc_devfn_to_bus(unsigned int devfn) { switch (devfn) { case PCH_DEVFN_I2C0: @@ -61,7 +61,7 @@ int i2c_soc_devfn_to_bus(unsigned int devfn) return -1; } -int i2c_soc_bus_to_devfn(unsigned int bus) +int dw_i2c_soc_bus_to_devfn(unsigned int bus) { switch (bus) { case 0: -- cgit v1.2.3