summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMartin Roth <martinroth@chromium.org>2016-10-24 16:32:19 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-11-15 17:41:53 -0800
commit897ce78bddb26557a686ab9e756fcf3d6c121271 (patch)
treeedde864d756a6e1133808118b8ae90c323ed4ade /include
parent64b57efebdb311126f3daaa97d49443308507b76 (diff)
downloadchrome-ec-897ce78bddb26557a686ab9e756fcf3d6c121271.tar.gz
Fix various misspellings in comments
No functional changes. BUG=none BRANCH=none TEST=make buildall passes Change-Id: Ie852feb8e3951975d99dce5a49c17f5f0e8bc791 Signed-off-by: Martin Roth <martinroth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/403417 Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/accelgyro.h6
-rw-r--r--include/battery_smart.h2
-rw-r--r--include/charger.h2
-rw-r--r--include/host_command.h2
-rw-r--r--include/i2c.h2
-rw-r--r--include/led_common.h2
-rw-r--r--include/smbus.h4
7 files changed, 10 insertions, 10 deletions
diff --git a/include/accelgyro.h b/include/accelgyro.h
index 0432a0e896..883516bb3e 100644
--- a/include/accelgyro.h
+++ b/include/accelgyro.h
@@ -97,7 +97,7 @@ struct accelgyro_drv {
* @event Event to process. May add other events for the next processor.
*
* Return EC_SUCCESS when one event is handled, EC_ERROR_NOT_HANDLED
- * when no events have been proccessed.
+ * when no events have been processed.
*/
int (*irq_handler)(struct motion_sensor_t *s, uint32_t *event);
#endif
@@ -106,7 +106,7 @@ struct accelgyro_drv {
* Retrieve hardware FIFO from sensor,
* - put data in Sensor Hub fifo.
* - update sensor raw_xyz vector with the last information.
- * We put raw data in hub fifo and process data from theres.
+ * We put raw data in hub fifo and process data from there.
* @s Pointer to sensor data.
*/
int (*load_fifo)(struct motion_sensor_t *s);
@@ -118,7 +118,7 @@ struct accelgyro_drv {
* @s Pointer to sensor data.
* @activity activity to work on
* @enable 1 to enable, 0 to disable
- * @data addtional data if needed, activity dependant.
+ * @data additional data if needed, activity dependent.
*/
int (*manage_activity)(const struct motion_sensor_t *s,
enum motionsensor_activity activity,
diff --git a/include/battery_smart.h b/include/battery_smart.h
index 72b4cf6544..94b291b4d9 100644
--- a/include/battery_smart.h
+++ b/include/battery_smart.h
@@ -56,7 +56,7 @@
#define SB_DEVICE_NAME 0x21
#define SB_DEVICE_CHEMISTRY 0x22
#define SB_MANUFACTURER_DATA 0x23
-/* Extention of smart battery spec, may not be supported on all platforms */
+/* Extension of smart battery spec, may not be supported on all platforms */
#define SB_ALT_MANUFACTURER_ACCESS 0x44
/* Battery mode */
diff --git a/include/charger.h b/include/charger.h
index a98e3e0f99..86ff5edc34 100644
--- a/include/charger.h
+++ b/include/charger.h
@@ -10,7 +10,7 @@
#include "common.h"
-/* Charger infomation
+/* Charger information
* voltage unit: mV
* current unit: mA
*/
diff --git a/include/host_command.h b/include/host_command.h
index c9dcd3ddd8..9df4689f24 100644
--- a/include/host_command.h
+++ b/include/host_command.h
@@ -162,7 +162,7 @@ void host_clear_events(uint32_t mask);
uint32_t host_get_events(void);
/**
- * Send a response to the relevent driver for transmission
+ * Send a response to the relevant driver for transmission
*
* Once command processing is complete, this is used to send a response
* back to the host.
diff --git a/include/i2c.h b/include/i2c.h
index 1514ce8f1a..38e632e38e 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -274,7 +274,7 @@ int i2c_unwedge(int port);
* Read bytestream from <slaveaddr>:<offset> with format:
* [length_N] [byte_0] [byte_1] ... [byte_N-1]
*
- * <len> : the max length of receving buffer. to read N bytes
+ * <len> : the max length of receiving buffer. to read N bytes
* ascii, len should be at least N+1 to include the
* terminating 0.
* <len> == 0 : buffer size > 255
diff --git a/include/led_common.h b/include/led_common.h
index 51230fbeb3..964ad3bf02 100644
--- a/include/led_common.h
+++ b/include/led_common.h
@@ -17,7 +17,7 @@ extern const enum ec_led_id supported_led_ids[];
extern const int supported_led_ids_count;
/**
- * Enable or diable automatic control of an LED.
+ * Enable or disable automatic control of an LED.
*
* @param led_id ID of LED to enable or disable automatic control.
* @param enable 1 to enable . 0 to disable
diff --git a/include/smbus.h b/include/smbus.h
index 367ceceb8d..15d42084b0 100644
--- a/include/smbus.h
+++ b/include/smbus.h
@@ -126,7 +126,7 @@ int smbus_read_word(uint8_t i2c_port, uint8_t slave_addr,
* @param plen uint8_t *, a pointer data length
* @return error_code
* EC_SUCCESS if success; none-zero if fail
- * EC_ERROR_BUSY if interface is bussy
+ * EC_ERROR_BUSY if interface is busy
* none zero error code if fail
*/
int smbus_read_block(uint8_t i2c_port, uint8_t slave_addr,
@@ -138,7 +138,7 @@ int smbus_read_block(uint8_t i2c_port, uint8_t slave_addr,
* Read bytestream from <slaveaddr>:<smbus_cmd> with format:
* [length_N] [byte_0] [byte_1] ... [byte_N-1][byte_N='\0']
*
- * <len> : the max length of receving buffer. to read N bytes
+ * <len> : the max length of receiving buffer. to read N bytes
* ascii, len should be at least N+1 to include the
* terminating 0 (NULL).
*