diff options
author | Aaron Durbin <adurbin@chromium.org> | 2018-01-22 20:29:25 -0700 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2018-01-24 05:02:59 +0000 |
commit | 9aee8194c46f31eeda6ee7419e40cad2de47187e (patch) | |
tree | 0f1edf8beb556064ec6f64475f71126d384cf669 /src/soc/intel/apollolake/i2c.c | |
parent | 439cee90984ed9b5b614af2707aa0017528890d0 (diff) |
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 <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/23371
Reviewed-by: Justin TerAvest <teravest@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/intel/apollolake/i2c.c')
-rw-r--r-- | src/soc/intel/apollolake/i2c.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/intel/apollolake/i2c.c b/src/soc/intel/apollolake/i2c.c index 5925f3d22c..bcaf740fe6 100644 --- a/src/soc/intel/apollolake/i2c.c +++ b/src/soc/intel/apollolake/i2c.c @@ -21,7 +21,7 @@ #include <soc/pci_devs.h> #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_apollolake_config *config; @@ -36,13 +36,13 @@ 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 PRERAM_I2C_BASE_ADDRESS(bus); } /* Convert I2C bus number to PCI device and function */ -int i2c_soc_bus_to_devfn(unsigned int bus) +int dw_i2c_soc_bus_to_devfn(unsigned int bus) { if (bus <= 3) return PCI_DEVFN(PCH_DEV_SLOT_SIO1, bus); @@ -53,7 +53,7 @@ int i2c_soc_bus_to_devfn(unsigned int bus) } /* Convert PCI device and function to I2C bus number */ -int i2c_soc_devfn_to_bus(unsigned int devfn) +int dw_i2c_soc_devfn_to_bus(unsigned int devfn) { if (PCI_SLOT(devfn) == PCH_DEV_SLOT_SIO1) return PCI_FUNC(devfn); |