summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorPaul Fagerburg <pfagerburg@google.com>2020-07-21 13:12:02 -0600
committerCommit Bot <commit-bot@chromium.org>2020-07-22 22:49:46 +0000
commit514923bc59f5a3435dbb7cbf348735ed41889ffe (patch)
tree15efb9db43b84f903e1915a78162e020808fec09 /board
parentb93f139e47f8ced7ebe2414737296f9a6ba49cbc (diff)
downloadchrome-ec-514923bc59f5a3435dbb7cbf348735ed41889ffe.tar.gz
ec: change usage of "sane" per inclusive language
Google is working to change its source code to use more inclusive language. To that end, replace the terms "sane", "sanity check", and similar with inclusive/non-stigmatizing alternatives. BUG=b:161832469 BRANCH=None TEST=`make buildall -j` succeeds. `grep -Eir "sane|sanity" .` shows results only in third-party code or documentation. Signed-off-by: Paul Fagerburg <pfagerburg@chromium.org> Change-Id: I29e78ab27f84f17b1ded75cfa10868fa4e5ae88c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2311169 Reviewed-by: Jett Rink <jettrink@chromium.org>
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;