summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2015-10-13 12:12:51 -0700
committerChromeOS bot <3su6n15k.default@developer.gserviceaccount.com>2015-11-18 22:55:58 +0000
commit43b072f03a295510b8dcf2b04397c9d96d6ceb80 (patch)
treebafb5f6df007634eec77f6c3ac72be7f7e463d97
parent0d6f272610645e8caae3bfe8c216fe91f1ec879d (diff)
downloadchrome-ec-43b072f03a295510b8dcf2b04397c9d96d6ceb80.tar.gz
motion: fix spelling
Fix various spelling errors. Command used: spell include/motion_sense.h | sort | uniq -c | \ grep -v -f ~/tmp/known_words | sort -n > /tmp/checking_spell Appended /tmp/checking_spell to ~/tmp/known_words to avoid C code. BRANCH=smaug TEST=compile, check only comments and one prinft are changed. BUG=none Change-Id: I39acfeaefef51d142a587940bccb02db86e87068 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/305570 Reviewed-by: Alec Berg <alecaberg@chromium.org> (cherry picked from commit c8844123923f8b65f38a7d16aaac3e9ce774ce2c) Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/313152
-rw-r--r--common/motion_sense.c16
-rw-r--r--driver/accelgyro_bmi160.c6
-rw-r--r--driver/mag_bmm150.c2
-rw-r--r--include/motion_sense.h8
4 files changed, 16 insertions, 16 deletions
diff --git a/common/motion_sense.c b/common/motion_sense.c
index 470ec3ed86..ac2ffb8148 100644
--- a/common/motion_sense.c
+++ b/common/motion_sense.c
@@ -196,7 +196,7 @@ int motion_sense_set_data_rate(struct motion_sensor_t *sensor)
enum sensor_config config_id;
timestamp_t ts = get_time();
- /* We assume the sensor is initalized */
+ /* We assume the sensor is initialized */
/* Check the AP setting first. */
if (sensor_active != SENSOR_ACTIVE_S5)
@@ -292,7 +292,7 @@ static int motion_sense_set_motion_intervals(void)
for (i = 0; i < motion_sensor_count; ++i) {
sensor = &motion_sensors[i];
/*
- * If the sensor is sleeping, no need to check it periodicaly.
+ * If the sensor is sleeping, no need to check it periodically.
*/
if ((sensor->state != SENSOR_INITIALIZED) ||
(sensor->drv->get_data_rate(sensor) == 0))
@@ -348,7 +348,7 @@ static inline int motion_sense_init(struct motion_sensor_t *sensor)
* motion_sense_switch_sensor_rate
*
* Suspend all sensors that are not needed.
- * Mark them as unitialized, they wll lose power and
+ * Mark them as uninitialized, they will lose power and
* need to be initialized again.
*/
static void motion_sense_switch_sensor_rate(void)
@@ -440,7 +440,7 @@ DECLARE_HOOK(HOOK_CHIPSET_SHUTDOWN, motion_sense_shutdown,
static void motion_sense_suspend(void)
{
/*
- * If we are comming from S5, don't enter suspend:
+ * If we are coming from S5, don't enter suspend:
* We will go in SO almost immediately.
*/
if (sensor_active == SENSOR_ACTIVE_S5)
@@ -504,7 +504,7 @@ static inline void update_sense_data(uint8_t *lpc_status,
* assumes little endian, which is what the host expects. Also,
* note that we share the lid angle calculation with host only
* for debugging purposes. The EC lid angle is an approximation
- * with un-calibrated accels. The AP calculates a separate,
+ * with uncalibrated accelerometers. The AP calculates a separate,
* more accurate lid angle.
*/
#ifdef CONFIG_LID_ANGLE
@@ -604,7 +604,7 @@ static int motion_sense_process(struct motion_sensor_t *sensor,
/*
* Motion Sense Task
* Requirement: motion_sensors[] are defined in board.c file.
- * Two (minimium) Accelerometers:
+ * Two (minimum) Accelerometers:
* 1 in the A/B(lid, display) and 1 in the C/D(base, keyboard)
* Gyro Sensor (optional)
*/
@@ -1054,7 +1054,7 @@ static int host_cmd_motion_sense(struct host_cmd_handler_args *args)
task_set_event(TASK_ID_MOTIONSENSE,
TASK_EVENT_MOTION_FLUSH_PENDING, 0);
- /* passthrough */
+ /* pass-through */
case MOTIONSENSE_CMD_FIFO_INFO:
motion_sense_get_fifo_info(&out->fifo_info);
for (i = 0; i < motion_sensor_count; i++) {
@@ -1296,7 +1296,7 @@ static int command_accel_data_rate(int argc, char **argv)
ccprintf("EC rate for sensor %d: %d\n", id,
motion_sense_ec_rate(sensor));
ccprintf("Current EC rate: %d\n", motion_interval);
- ccprintf("Current Interupt rate: %d\n", motion_int_interval);
+ ccprintf("Current Interrupt rate: %d\n", motion_int_interval);
}
return EC_SUCCESS;
diff --git a/driver/accelgyro_bmi160.c b/driver/accelgyro_bmi160.c
index 46546c4b43..85aaadb42c 100644
--- a/driver/accelgyro_bmi160.c
+++ b/driver/accelgyro_bmi160.c
@@ -585,8 +585,8 @@ int perform_calib(const struct motion_sensor_t *s)
rate = get_data_rate(s);
/*
- * Temperary set frequency to 100Hz to get enough data in a short
- * period of fime.
+ * Temporary set frequency to 100Hz to get enough data in a short
+ * period of time.
*/
set_data_rate(s, 100000, 0);
@@ -665,7 +665,7 @@ int manage_activity(const struct motion_sensor_t *s,
if (ret)
return ret;
if (enable) {
- /* We should use paramters from caller */
+ /* We should use parameters from caller */
raw_write8(s->addr, BMI160_INT_MOTION_3,
BMI160_MOTION_PROOF_TIME(
CONFIG_GESTURE_SIGMO_PROOF_MS) <<
diff --git a/driver/mag_bmm150.c b/driver/mag_bmm150.c
index f60e57b0ba..3e8f38c3e3 100644
--- a/driver/mag_bmm150.c
+++ b/driver/mag_bmm150.c
@@ -4,7 +4,7 @@
*/
/**
- * BMM150 compass behing a BMI160
+ * BMM150 compass behind a BMI160
*/
#include "accelgyro.h"
diff --git a/include/motion_sense.h b/include/motion_sense.h
index f1657b5a7d..d0f5df329b 100644
--- a/include/motion_sense.h
+++ b/include/motion_sense.h
@@ -70,7 +70,7 @@ struct motion_sensor_t {
const struct accelgyro_drv *drv;
struct mutex *mutex;
void *drv_data;
- /* i2c address or SPI slage logic GPIO. */
+ /* i2c address or SPI slave logic GPIO. */
uint8_t addr;
const matrix_3x3_t *rot_standard_ref;
@@ -88,8 +88,8 @@ struct motion_sensor_t {
* --------+-------------------+-------------------+-----------------
* From AP | <------- SENSOR_CONFIG_AP ----------> |
* | Use for normal | While sleeping | Always disabled
- * | operation: game, | iFor Activity |
- * | screen rotatopm | Recognition |
+ * | operation: game, | For Activity |
+ * | screen rotation | Recognition |
* --------+-------------------+-------------------+------------------
* From EC |SENSOR_CONFIG_EC_S0|SENSOR_CONFIG_EC_S3|SENSOR_CONFIG_EC_S5
* | Background | Gesture Recognition (Double tap, ...)
@@ -121,7 +121,7 @@ struct motion_sensor_t {
uint16_t lost;
/*
- * Time since iast collection:
+ * Time since last collection:
* For sensor with hardware FIFO, time since last sample
* has move from the hardware FIFO to the FIFO (used if fifo rate != 0).
* For sensor without FIFO, time since the last event was collect