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>
This commit is contained in:
Felix Held 2022-01-31 16:02:05 +01:00
parent 8ed02de830
commit abdf684c37
2 changed files with 1 additions and 8 deletions

View File

@ -453,7 +453,7 @@ out:
return ret; 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; const struct i2c_msg *orig_msg = msg;
size_t i; size_t i;

View File

@ -109,13 +109,6 @@ int dw_i2c_gen_speed_config(uintptr_t dw_i2c_addr,
const struct dw_i2c_bus_config *bcfg, const struct dw_i2c_bus_config *bcfg,
struct dw_i2c_speed_config *config); 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. * Map an i2c host controller device to a logical bus number.
* Return value: * Return value: