summaryrefslogtreecommitdiff
path: root/include/i2c_peripheral.h
diff options
context:
space:
mode:
authorDossym Nurmukhanov <dossym@google.com>2020-12-12 02:46:43 +0000
committerCommit Bot <commit-bot@chromium.org>2020-12-12 20:15:38 +0000
commit52863374ad592b80b24def9689856ecda2d645d0 (patch)
tree40dd4839b515c0e404405f23168be339bd5aa0ba /include/i2c_peripheral.h
parentc03b3d8174231562369cd51f3fedf82e75655273 (diff)
downloadchrome-ec-52863374ad592b80b24def9689856ecda2d645d0.tar.gz
COIL: Standardize i2c peripheral language
BUG=none TEST=validate volteer build (i2c_peripheral.c is not used by any boards) BRANCH=none Signed-off-by: dossym@chromium.org Change-Id: Ib2d78dc3fc9f4f189f84409cf43ab96788c429be Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2587227 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'include/i2c_peripheral.h')
-rw-r--r--include/i2c_peripheral.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/i2c_peripheral.h b/include/i2c_peripheral.h
index 3145d4679b..488e886b0e 100644
--- a/include/i2c_peripheral.h
+++ b/include/i2c_peripheral.h
@@ -3,19 +3,19 @@
* found in the LICENSE file.
*/
-/* I2C slave interface for Chrome EC */
+/* I2C peripheral interface for Chrome EC */
-#ifndef __CROS_EC_I2CSLV_H
-#define __CROS_EC_I2CSLV_H
+#ifndef __CROS_EC_I2C_PERIPHERAL_H
+#define __CROS_EC_I2C_PERIPHERAL_H
-/* Data structure to define I2C slave port configuration. */
-struct i2c_slv_port_t {
+/* Data structure to define I2C peripheral port configuration. */
+struct i2c_periph_port_t {
const char *name; /* Port name */
int port; /* Port */
- uint8_t slave_adr; /* slave address(7-bit without R/W) */
+ uint8_t addr; /* address(7-bit without R/W) */
};
-extern const struct i2c_slv_port_t i2c_slv_ports[];
-extern const unsigned int i2c_slvs_used;
+extern const struct i2c_periph_port_t i2c_periph_ports[];
+extern const unsigned int i2c_periphs_used;
-#endif /* __CROS_EC_I2CSLV_H */
+#endif /* __CROS_EC_I2C_PERIPHERAL_H */