diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2020-08-05 11:16:48 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-14 05:59:03 +0000 |
commit | c7bf1bd094828785d4444a01e54ca703bfc5c797 (patch) | |
tree | 27ad2edc36ee9e4769de1e51cfaaf64ae19e6574 /extra | |
parent | 89d7fa59ea9674d8f7d561739f81cdb3d9c80774 (diff) | |
download | chrome-ec-c7bf1bd094828785d4444a01e54ca703bfc5c797.tar.gz |
COIL: change usage of sanity
Google is working to change its source code to use more inclusive
language. To that end, replace the term "sanity" with inclusive
alternatives.
BUG=b:163885307
BRANCH=None
TEST=make -j buildall
TEST=grep -ir sanity
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Change-Id: I487a50999d506a0337f1d3fbe173f193e5e4098a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2353516
Reviewed-by: Sam Hurst <shurst@google.com>
Diffstat (limited to 'extra')
-rw-r--r-- | extra/i2c_pseudo/i2c-pseudo.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/extra/i2c_pseudo/i2c-pseudo.c b/extra/i2c_pseudo/i2c-pseudo.c index bbe702a14c..e4f1852cd8 100644 --- a/extra/i2c_pseudo/i2c-pseudo.c +++ b/extra/i2c_pseudo/i2c-pseudo.c @@ -69,8 +69,6 @@ #define I2CP_CTRLR_RSP_QUEUE_LIMIT 256 /* The maximum size of a single controller read response. */ #define I2CP_MAX_MSG_BUF_SIZE 16384 -/* Maximum length (not size!) of i2cp_cmds static array. */ -#define I2CP_CMDS_SANITY_LIMIT 64 /* Maximum size of a controller read or write. */ #define I2CP_RW_SIZE_LIMIT 1048576 @@ -78,7 +76,7 @@ * Marks the end of a controller command or read response. * * Fundamentally, controller commands and read responses could use different end - * marker characters, but for sanity they should be the same. + * marker characters, but for validity they should be the same. * * This must be a variable, not a macro, because it is passed to copy_to_user() * by address. Taking the address of a character literal causes a compiler @@ -903,7 +901,7 @@ static ssize_t i2cp_rsp_master_xfer_formatter(void *data, char **out) /* * The length is not strictly necessary with the explicit * end-of-message marker (i2cp_ctrlr_end_char), however it - * serves as a useful sanity check for controllers to verify + * serves as a useful validity check for controllers to verify * that no bytes were lost in kernel->userspace transmission. */ ret = anprintf(&buf_start, I2CP_MAX_MSG_BUF_SIZE, GFP_KERNEL, |