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/common/block/i2c/i2c.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/soc/intel/common/block/i2c/i2c.c') diff --git a/src/soc/intel/common/block/i2c/i2c.c b/src/soc/intel/common/block/i2c/i2c.c index f2154da3f6..4b2b4eb5a8 100644 --- a/src/soc/intel/common/block/i2c/i2c.c +++ b/src/soc/intel/common/block/i2c/i2c.c @@ -27,7 +27,7 @@ uintptr_t dw_i2c_base_address(unsigned int bus) struct resource *res; /* bus -> devfn */ - devfn = i2c_soc_bus_to_devfn(bus); + devfn = dw_i2c_soc_bus_to_devfn(bus); if (devfn < 0) return (uintptr_t)NULL; @@ -48,7 +48,7 @@ uintptr_t dw_i2c_base_address(unsigned int bus) static int lpss_i2c_dev_to_bus(struct device *dev) { pci_devfn_t devfn = dev->path.pci.devfn; - return i2c_soc_devfn_to_bus(devfn); + return dw_i2c_soc_devfn_to_bus(devfn); } /* @@ -98,7 +98,7 @@ static void lpss_i2c_dev_init(struct device *dev) if (bus < 0) return; - config = i2c_get_soc_cfg(bus, dev); + config = dw_i2c_get_soc_cfg(bus, dev); if (!config) return; @@ -132,7 +132,7 @@ static void lpss_i2c_acpi_fill_ssdt(struct device *dev) if (bus < 0) return; - bcfg = i2c_get_soc_cfg(bus, dev); + bcfg = dw_i2c_get_soc_cfg(bus, dev); if (!bcfg) return; -- cgit v1.2.3