diff options
author | Yuval Peress <peress@chromium.org> | 2021-05-13 22:52:47 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-14 17:32:10 +0000 |
commit | db63b8678627cf690f07792dfdbe703cf288b1c6 (patch) | |
tree | de1c5ef6e33512597dbf028afd73e0db97da27e5 /include/i2c.h | |
parent | 483949de5dc234a038e361c562de5b5f4c2bd220 (diff) | |
download | chrome-ec-db63b8678627cf690f07792dfdbe703cf288b1c6.tar.gz |
zephyr: i2c: remove scl and sda references
The SDA and SCL components of the struct i2c_port_t are only used in
and for the i2c_wedge.c logic. This isn't needed in Zephyr. Remove
the values and functions that use them from the Zephyr build.
BRANCH=none
BUG=b:188179405
TEST=build volteer and trogdor
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I71a26fbd9bc51def744ef1f16a540728482c5a2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2896235
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Diffstat (limited to 'include/i2c.h')
-rw-r--r-- | include/i2c.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/i2c.h b/include/i2c.h index 709da7d451..231561caea 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -110,9 +110,9 @@ struct i2c_port_t { int port; /* Port */ #ifndef CONFIG_ZEPHYR int kbps; /* Speed in kbps */ -#endif /* CONFIG_ZEPHYR */ enum gpio_signal scl; /* Port SCL GPIO line */ enum gpio_signal sda; /* Port SDA GPIO line */ +#endif /* CONFIG_ZEPHYR */ /* When bus is protected, returns true if passthru allowed for address. * If the function is not defined, the default value is true. */ int (*passthru_allowed)(const struct i2c_port_t *port, |