summaryrefslogtreecommitdiff
path: root/chip/stm32
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2020-11-03 14:52:49 -0700
committerCommit Bot <commit-bot@chromium.org>2020-11-05 01:28:37 +0000
commit899412aaf662619fbf66bbdc0398c7d69aebc482 (patch)
treec8f0a938571a25a60cdadec0789db6b5842cc28f /chip/stm32
parent1044b2dfac75e861f00e03bcfe3231506ca2ae93 (diff)
downloadchrome-ec-899412aaf662619fbf66bbdc0398c7d69aebc482.tar.gz
COIL: Rename CONFIG_I2C_CONTROLLER
Rename CONFIG_I2C_CONTROLLER and related comments. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ied6a1829bf54a5c9a32e6772982a4b8aa31aaf23 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2518659 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'chip/stm32')
-rw-r--r--chip/stm32/i2c-stm32f4.c2
-rw-r--r--chip/stm32/i2c-stm32g4.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/chip/stm32/i2c-stm32f4.c b/chip/stm32/i2c-stm32f4.c
index 9113df017b..df6e61564f 100644
--- a/chip/stm32/i2c-stm32f4.c
+++ b/chip/stm32/i2c-stm32f4.c
@@ -715,7 +715,7 @@ int i2c_get_line_levels(int port)
/*****************************************************************************/
/* Hooks */
-#ifdef CONFIG_I2C_MASTER
+#ifdef CONFIG_I2C_CONTROLLER
/* Handle CPU clock changing frequency */
static void i2c_freq_change(void)
{
diff --git a/chip/stm32/i2c-stm32g4.c b/chip/stm32/i2c-stm32g4.c
index f84cb0cccf..eb1c7f1560 100644
--- a/chip/stm32/i2c-stm32g4.c
+++ b/chip/stm32/i2c-stm32g4.c
@@ -408,7 +408,7 @@ int i2c_get_line_levels(int port)
/*****************************************************************************/
/* Hooks */
-#ifdef CONFIG_I2C_MASTER
+#ifdef CONFIG_I2C_CONTROLLER
/* Handle an upcoming frequency change. */
static void i2c_pre_freq_change_hook(void)
{