summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2019-07-30 10:35:39 -0600
committerCommit Bot <commit-bot@chromium.org>2019-07-30 23:16:03 +0000
commit671c261e3d70ac4def1c4a2360cdbccfbbe44bbd (patch)
tree6bad5ff20c7b05ad5f6a57799a55dc23f39891bb
parent8dcd9a736b7da6c72b468124c3febbe0ede75a4e (diff)
downloadchrome-ec-671c261e3d70ac4def1c4a2360cdbccfbbe44bbd.tar.gz
pi3usb9201: Fix typo in structure name.
The structure used by board files to define the I2C connections to the PI3USB9201 driver had digits in the part number transposed. BUG=b:138650914 BRANCH=none TEST=make buildall Change-Id: Iaa7897a35f3172dd71fccca4e203b1d0e6a18ef7 Signed-off-by: Keith Short <keithshort@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1725959 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Edward Hill <ecgh@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org>
-rw-r--r--board/hatch/board.c2
-rw-r--r--board/helios/board.c2
-rw-r--r--board/kindred/board.c2
-rw-r--r--driver/bc12/pi3usb9201.c8
-rw-r--r--driver/bc12/pi3usb9201.h4
5 files changed, 9 insertions, 9 deletions
diff --git a/board/hatch/board.c b/board/hatch/board.c
index 2d7da1a1cf..871377043f 100644
--- a/board/hatch/board.c
+++ b/board/hatch/board.c
@@ -156,7 +156,7 @@ struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = {
}
};
-const struct pi3usb2901_config_t pi3usb2901_bc12_chips[] = {
+const struct pi3usb9201_config_t pi3usb9201_bc12_chips[] = {
[USB_PD_PORT_TCPC_0] = {
.i2c_port = I2C_PORT_PPC0,
.i2c_addr_flags = PI3USB9201_I2C_ADDR_3_FLAGS,
diff --git a/board/helios/board.c b/board/helios/board.c
index 033056618f..6af2b3287f 100644
--- a/board/helios/board.c
+++ b/board/helios/board.c
@@ -144,7 +144,7 @@ struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = {
}
};
-const struct pi3usb2901_config_t pi3usb2901_bc12_chips[] = {
+const struct pi3usb9201_config_t pi3usb9201_bc12_chips[] = {
[USB_PD_PORT_TCPC_0] = {
.i2c_port = I2C_PORT_PPC0,
.i2c_addr_flags = PI3USB9201_I2C_ADDR_3_FLAGS,
diff --git a/board/kindred/board.c b/board/kindred/board.c
index ddb717019c..cedf1bb77c 100644
--- a/board/kindred/board.c
+++ b/board/kindred/board.c
@@ -157,7 +157,7 @@ struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = {
}
};
-const struct pi3usb2901_config_t pi3usb2901_bc12_chips[] = {
+const struct pi3usb9201_config_t pi3usb9201_bc12_chips[] = {
[USB_PD_PORT_TCPC_0] = {
.i2c_port = I2C_PORT_PPC0,
.i2c_addr_flags = PI3USB9201_I2C_ADDR_3_FLAGS,
diff --git a/driver/bc12/pi3usb9201.c b/driver/bc12/pi3usb9201.c
index 2ecc9e7419..08ed7baa6e 100644
--- a/driver/bc12/pi3usb9201.c
+++ b/driver/bc12/pi3usb9201.c
@@ -62,15 +62,15 @@ static const struct bc12_status bc12_chg_limits[] = {
static inline int raw_read8(int port, int offset, int *value)
{
- return i2c_read8(pi3usb2901_bc12_chips[port].i2c_port,
- pi3usb2901_bc12_chips[port].i2c_addr_flags,
+ return i2c_read8(pi3usb9201_bc12_chips[port].i2c_port,
+ pi3usb9201_bc12_chips[port].i2c_addr_flags,
offset, value);
}
static inline int raw_write8(int port, int offset, int value)
{
- return i2c_write8(pi3usb2901_bc12_chips[port].i2c_port,
- pi3usb2901_bc12_chips[port].i2c_addr_flags,
+ return i2c_write8(pi3usb9201_bc12_chips[port].i2c_port,
+ pi3usb9201_bc12_chips[port].i2c_addr_flags,
offset, value);
}
diff --git a/driver/bc12/pi3usb9201.h b/driver/bc12/pi3usb9201.h
index 3a94fdf5ad..d9ee80a0d0 100644
--- a/driver/bc12/pi3usb9201.h
+++ b/driver/bc12/pi3usb9201.h
@@ -31,7 +31,7 @@
#define PI3USB9201_REG_HOST_STS_DEV_PLUG BIT(1)
#define PI3USB9201_REG_HOST_STS_DEV_UNPLUG BIT(2)
-struct pi3usb2901_config_t {
+struct pi3usb9201_config_t {
const int i2c_port;
const int i2c_addr_flags;
};
@@ -48,5 +48,5 @@ enum pi3usb9201_mode {
};
/* Configuration struct defined at board level */
-extern const struct pi3usb2901_config_t pi3usb2901_bc12_chips[];
+extern const struct pi3usb9201_config_t pi3usb9201_bc12_chips[];