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>
This commit is contained in:
Aaron Durbin
2018-01-22 20:29:25 -07:00
parent 439cee9098
commit 9aee8194c4
6 changed files with 24 additions and 24 deletions

View File

@@ -79,7 +79,7 @@ struct dw_i2c_bus_config {
/* Functions to be implemented by SoC code */
/* Get base address for early init of I2C controllers. */
uintptr_t i2c_get_soc_early_base(unsigned int bus);
uintptr_t dw_i2c_get_soc_early_base(unsigned int bus);
/*
* Map given I2C bus number to devfn.
@@ -87,7 +87,7 @@ uintptr_t i2c_get_soc_early_base(unsigned int bus);
* -1 = error
* otherwise, devfn(>=0) corresponding to I2C bus number.
*/
int i2c_soc_devfn_to_bus(unsigned int devfn);
int dw_i2c_soc_devfn_to_bus(unsigned int devfn);
/*
* Map given bus number to a I2C Controller.
@@ -95,14 +95,14 @@ int i2c_soc_devfn_to_bus(unsigned int devfn);
* -1 = error
* otherwise, devfn(>=0) corresponding to I2C bus number.
*/
int i2c_soc_bus_to_devfn(unsigned int bus);
int dw_i2c_soc_bus_to_devfn(unsigned int bus);
/*
* SoC implemented callback for getting I2C bus configuration.
*
* Returns NULL if i2c config is not found
*/
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);
/* Get I2C controller base address */