summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
Diffstat (limited to 'board')
-rw-r--r--board/akemi/board.c2
-rw-r--r--board/bloog/board.c2
-rw-r--r--board/bobba/board.c2
-rw-r--r--board/casta/board.c2
-rw-r--r--board/dood/board.c2
-rw-r--r--board/dratini/board.c2
-rw-r--r--board/fleex/board.c2
-rw-r--r--board/foob/board.c2
-rw-r--r--board/garg/board.c2
-rw-r--r--board/hatch/board.c2
-rw-r--r--board/helios/board.c2
-rw-r--r--board/jinlon/board.c2
-rw-r--r--board/kindred/board.c2
-rw-r--r--board/kohaku/board.c2
-rw-r--r--board/lick/board.c2
-rw-r--r--board/meep/board.c2
-rw-r--r--board/mushu/board.c2
-rw-r--r--board/nightfury/board.c2
-rw-r--r--board/nocturne/board.c2
-rw-r--r--board/palkia/board.c2
-rw-r--r--board/phaser/board.c2
-rw-r--r--board/puff/board.c2
-rw-r--r--board/stryke/board.c2
-rw-r--r--board/sushi/board.c2
-rw-r--r--board/yorp/board.c2
25 files changed, 25 insertions, 25 deletions
diff --git a/board/akemi/board.c b/board/akemi/board.c
index ad5fce6d71..cc78e77f0c 100644
--- a/board/akemi/board.c
+++ b/board/akemi/board.c
@@ -367,7 +367,7 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/bloog/board.c b/board/bloog/board.c
index 5a7d31ebea..2973b5c6dd 100644
--- a/board/bloog/board.c
+++ b/board/bloog/board.c
@@ -317,7 +317,7 @@ const int keyboard_factory_scan_pins_used =
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/bobba/board.c b/board/bobba/board.c
index 7f20c820fd..90bfaf74ce 100644
--- a/board/bobba/board.c
+++ b/board/bobba/board.c
@@ -418,7 +418,7 @@ void lid_angle_peripheral_enable(int enable)
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/casta/board.c b/board/casta/board.c
index d277ab3b1c..e1d7630e3f 100644
--- a/board/casta/board.c
+++ b/board/casta/board.c
@@ -156,7 +156,7 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/dood/board.c b/board/dood/board.c
index 25db730c85..62109a3c56 100644
--- a/board/dood/board.c
+++ b/board/dood/board.c
@@ -301,7 +301,7 @@ void lid_angle_peripheral_enable(int enable)
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/dratini/board.c b/board/dratini/board.c
index 83aa24de7c..b10c299af1 100644
--- a/board/dratini/board.c
+++ b/board/dratini/board.c
@@ -434,7 +434,7 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/fleex/board.c b/board/fleex/board.c
index d6d4903686..c487da68f2 100644
--- a/board/fleex/board.c
+++ b/board/fleex/board.c
@@ -254,7 +254,7 @@ void lid_angle_peripheral_enable(int enable)
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/foob/board.c b/board/foob/board.c
index 98c03c2b01..87a5c656de 100644
--- a/board/foob/board.c
+++ b/board/foob/board.c
@@ -289,7 +289,7 @@ DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, board_chipset_suspend, HOOK_PRIO_DEFAULT);
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/garg/board.c b/board/garg/board.c
index 937e8c2d31..44cc3b3759 100644
--- a/board/garg/board.c
+++ b/board/garg/board.c
@@ -288,7 +288,7 @@ void lid_angle_peripheral_enable(int enable)
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/hatch/board.c b/board/hatch/board.c
index a5715d2cfa..69da3f5328 100644
--- a/board/hatch/board.c
+++ b/board/hatch/board.c
@@ -485,7 +485,7 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/helios/board.c b/board/helios/board.c
index ac7bfb1d7e..87b2b89702 100644
--- a/board/helios/board.c
+++ b/board/helios/board.c
@@ -386,7 +386,7 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/jinlon/board.c b/board/jinlon/board.c
index e2b14b5c5e..f789b15590 100644
--- a/board/jinlon/board.c
+++ b/board/jinlon/board.c
@@ -467,7 +467,7 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/kindred/board.c b/board/kindred/board.c
index c3c802136b..0ee52f7095 100644
--- a/board/kindred/board.c
+++ b/board/kindred/board.c
@@ -457,7 +457,7 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/kohaku/board.c b/board/kohaku/board.c
index 4893359d56..8f261dff23 100644
--- a/board/kohaku/board.c
+++ b/board/kohaku/board.c
@@ -460,7 +460,7 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/lick/board.c b/board/lick/board.c
index 510c7a1bb1..71512249be 100644
--- a/board/lick/board.c
+++ b/board/lick/board.c
@@ -283,7 +283,7 @@ DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, board_chipset_suspend, HOOK_PRIO_DEFAULT);
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/meep/board.c b/board/meep/board.c
index bee35e828d..a497e337fb 100644
--- a/board/meep/board.c
+++ b/board/meep/board.c
@@ -325,7 +325,7 @@ const int keyboard_factory_scan_pins_used =
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/mushu/board.c b/board/mushu/board.c
index c4186e4be5..dd407091c5 100644
--- a/board/mushu/board.c
+++ b/board/mushu/board.c
@@ -547,7 +547,7 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/nightfury/board.c b/board/nightfury/board.c
index 32be32b32d..0dcee3a1cf 100644
--- a/board/nightfury/board.c
+++ b/board/nightfury/board.c
@@ -401,7 +401,7 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/nocturne/board.c b/board/nocturne/board.c
index b5472ee456..6a45cabf4c 100644
--- a/board/nocturne/board.c
+++ b/board/nocturne/board.c
@@ -560,7 +560,7 @@ void board_overcurrent_event(int port, int is_overcurrented)
{
int lvl;
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/palkia/board.c b/board/palkia/board.c
index 3688064811..939447fc17 100644
--- a/board/palkia/board.c
+++ b/board/palkia/board.c
@@ -255,7 +255,7 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/phaser/board.c b/board/phaser/board.c
index 1dae01fc20..0d64934f75 100644
--- a/board/phaser/board.c
+++ b/board/phaser/board.c
@@ -290,7 +290,7 @@ DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, board_chipset_suspend, HOOK_PRIO_DEFAULT);
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/puff/board.c b/board/puff/board.c
index c59ce541ad..3aa156ca6b 100644
--- a/board/puff/board.c
+++ b/board/puff/board.c
@@ -635,7 +635,7 @@ int board_set_active_charge_port(int port)
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
usbc_overcurrent = is_overcurrented;
diff --git a/board/stryke/board.c b/board/stryke/board.c
index a6396ced52..afec23450c 100644
--- a/board/stryke/board.c
+++ b/board/stryke/board.c
@@ -401,7 +401,7 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/sushi/board.c b/board/sushi/board.c
index dea90102f0..f1a7b2b698 100644
--- a/board/sushi/board.c
+++ b/board/sushi/board.c
@@ -485,7 +485,7 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;
diff --git a/board/yorp/board.c b/board/yorp/board.c
index d080b8d446..1d4597311a 100644
--- a/board/yorp/board.c
+++ b/board/yorp/board.c
@@ -251,7 +251,7 @@ DECLARE_HOOK(HOOK_INIT, post_old_board_warning, HOOK_PRIO_INIT_I2C + 1);
void board_overcurrent_event(int port, int is_overcurrented)
{
- /* Sanity check the port. */
+ /* Check that port number is valid. */
if ((port < 0) || (port >= CONFIG_USB_PD_PORT_MAX_COUNT))
return;