summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2020-05-08 13:37:12 -0600
committerCommit Bot <commit-bot@chromium.org>2020-05-09 01:02:59 +0000
commitdd5c0437677814b24f24628da23725ea731db03c (patch)
tree362ce665bb718b3b071e3d721d585979b12372f7 /chip
parent2d4d1fa19542f437508d640fe655abd09793c951 (diff)
downloadchrome-ec-dd5c0437677814b24f24628da23725ea731db03c.tar.gz
cleanup: rename kpbs to kbps for i2c
This changes follows the hdctool change for c2d2 that ensures either kpbs or kbps on the console output will work (CL:2161642) BRANCH=servo BUG=none TEST=builds Signed-off-by: Jett Rink <jettrink@chromium.org> Change-Id: I57e1638a4e8c9a61d58705c70d4d24c7b65e48bd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2191132 Commit-Queue: Diana Z <dzigterman@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/it83xx/i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/it83xx/i2c.c b/chip/it83xx/i2c.c
index 0ab872f323..362462cdb7 100644
--- a/chip/it83xx/i2c.c
+++ b/chip/it83xx/i2c.c
@@ -106,7 +106,7 @@ enum i2c_reset_cause {
};
struct i2c_ch_freq {
- int kpbs;
+ int kbps;
uint8_t freq_set;
};
@@ -785,7 +785,7 @@ static void i2c_freq_changed(void)
freq = i2c_ports[i].kbps;
if (i2c_ports[i].port < I2C_STANDARD_PORT_COUNT) {
for (f = ARRAY_SIZE(i2c_freq_select) - 1; f >= 0; f--) {
- if (freq >= i2c_freq_select[f].kpbs) {
+ if (freq >= i2c_freq_select[f].kbps) {
IT83XX_SMB_SCLKTS(i2c_ports[i].port) =
i2c_freq_select[f].freq_set;
break;