summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-12-17 13:43:17 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-12-19 00:12:28 +0000
commit6ab8e91658f1efc894b648cc0748af8d804915e4 (patch)
treec33da7914793452ecb37084e505230171d4eff9e /include
parente5935f17d1798a1f19c6003e57f140446774484f (diff)
downloadchrome-ec-6ab8e91658f1efc894b648cc0748af8d804915e4.tar.gz
cleanup: Remove checkpatch warnings
This make minor syntactic changes and renames some camel-cased symbols to keep checkpatch from complaining. The goal is to reduce the temptation to use 'repo upload --no-verify'. This is a big furball of find/replace, but no functional changes. BUG=chromium:322144 BRANCH=none TEST=build all boards; pass unit tests Change-Id: I0269b7dd95836ef9a6e33f88c003ab0f24f842a0 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/180495
Diffstat (limited to 'include')
-rw-r--r--include/i2c.h4
-rw-r--r--include/temp_sensor.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/i2c.h b/include/i2c.h
index 6367c87079..7d93eed7ef 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -66,7 +66,7 @@ void i2c_lock(int port, int lock);
/* Read a 16-bit register from the slave at 8-bit slave address <slaveaddr>, at
* the specified 8-bit <offset> in the slave's address space. */
-int i2c_read16(int port, int slave_addr, int offset, int* data);
+int i2c_read16(int port, int slave_addr, int offset, int *data);
/* Write a 16-bit register to the slave at 8-bit slave address <slaveaddr>, at
* the specified 8-bit <offset> in the slave's address space. */
@@ -74,7 +74,7 @@ int i2c_write16(int port, int slave_addr, int offset, int data);
/* Read an 8-bit register from the slave at 8-bit slave address <slaveaddr>, at
* the specified 8-bit <offset> in the slave's address space. */
-int i2c_read8(int port, int slave_addr, int offset, int* data);
+int i2c_read8(int port, int slave_addr, int offset, int *data);
/* Write an 8-bit register to the slave at 8-bit slave address <slaveaddr>, at
* the specified 8-bit <offset> in the slave's address space. */
diff --git a/include/temp_sensor.h b/include/temp_sensor.h
index a63beb218b..cd1b80d892 100644
--- a/include/temp_sensor.h
+++ b/include/temp_sensor.h
@@ -28,7 +28,7 @@ enum temp_sensor_type {
};
struct temp_sensor_t {
- const char* name;
+ const char *name;
/* Temperature sensor type. */
enum temp_sensor_type type;
/* Read sensor value in K into temp_ptr; return non-zero if error. */