summaryrefslogtreecommitdiff
path: root/src/drivers/i2c
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2022-01-31 16:02:05 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-02-01 17:57:23 +0000
commitabdf684c372c3d6dd13d10b441f89e943cebbe8d (patch)
tree5da79eb9f5701a34e390aa5a75a1ed839209aadc /src/drivers/i2c
parent8ed02de830b27be0c0c1652cf79ac5a866101423 (diff)
drivers/i2c/designware/dw_i2c: limit scope of dw_i2c_transfer
Outside of the designware I2C driver the generic platform_i2c_transfer function should be used instead, so don't make dw_i2c_transfer available outside of this file. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ib8b6a08b6aa2cd63adc2ef69b828661fa0ed154a Reviewed-on: https://review.coreboot.org/c/coreboot/+/61514 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/drivers/i2c')
-rw-r--r--src/drivers/i2c/designware/dw_i2c.c2
-rw-r--r--src/drivers/i2c/designware/dw_i2c.h7
2 files changed, 1 insertions, 8 deletions
diff --git a/src/drivers/i2c/designware/dw_i2c.c b/src/drivers/i2c/designware/dw_i2c.c
index 011b38b548..bfb5971684 100644
--- a/src/drivers/i2c/designware/dw_i2c.c
+++ b/src/drivers/i2c/designware/dw_i2c.c
@@ -453,7 +453,7 @@ out:
return ret;
}
-enum cb_err dw_i2c_transfer(unsigned int bus, const struct i2c_msg *msg, size_t count)
+static enum cb_err dw_i2c_transfer(unsigned int bus, const struct i2c_msg *msg, size_t count)
{
const struct i2c_msg *orig_msg = msg;
size_t i;
diff --git a/src/drivers/i2c/designware/dw_i2c.h b/src/drivers/i2c/designware/dw_i2c.h
index 847b6c3fda..3d8e66367c 100644
--- a/src/drivers/i2c/designware/dw_i2c.h
+++ b/src/drivers/i2c/designware/dw_i2c.h
@@ -110,13 +110,6 @@ int dw_i2c_gen_speed_config(uintptr_t dw_i2c_addr,
struct dw_i2c_speed_config *config);
/*
- * Process given I2C segments in a single transfer
- */
-enum cb_err dw_i2c_transfer(unsigned int bus,
- const struct i2c_msg *segments,
- size_t count);
-
-/*
* Map an i2c host controller device to a logical bus number.
* Return value:
* -1 = failure