summaryrefslogtreecommitdiff
path: root/include/i2c.h
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2019-03-04 13:55:27 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-03-07 20:22:12 -0800
commit2b2238cee00c252b4e6334d908ba76d73d605739 (patch)
tree243783909e5c96c41699d77531e3f9be4ca3e478 /include/i2c.h
parentdbd0b06752030e7e96ec9ec534d354cde0a47814 (diff)
downloadchrome-ec-2b2238cee00c252b4e6334d908ba76d73d605739.tar.gz
i2c: fix style violations introduced by ab40ba67c
The patch in question was uploaded with numerous coding style violations. Fixing them to avoid warnings when cherry-picking the patch into different branches. BRANCH=cr50, cr50-mp BUG=none TEST=repo upload does not complain any more. Change-Id: I01e2786a509819ed914370b0ab276bb58e420365 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1500993 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'include/i2c.h')
-rw-r--r--include/i2c.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/i2c.h b/include/i2c.h
index b749d04b08..66e2e82029 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -268,30 +268,29 @@ int i2c_write8(int port, int slave_addr, int offset, int data);
* Read one or two bytes data from the slave at 8-bit slave address
* * <slaveaddr>, at 16-bit <offset> in the slave's address space.
*/
-int i2c_read_offset16(int port, int slave_addr, uint16_t offset,
- int *data, int len);
+int i2c_read_offset16(int port, int slave_addr, uint16_t offset, int *data,
+ int len);
/**
* Write one or two bytes data to the slave at 8-bit slave address
* <slaveaddr>, at 16-bit <offset> in the slave's address space.
*/
-int i2c_write_offset16(int port, int slave_addr, uint16_t offset,
- int data, int len);
+int i2c_write_offset16(int port, int slave_addr, uint16_t offset, int data,
+ int len);
/**
* Read <len> bytes block data from the slave at 8-bit slave address
* * <slaveaddr>, at 16-bit <offset> in the slave's address space.
*/
int i2c_read_offset16_block(int port, int slave_addr, uint16_t offset,
- uint8_t *data, int len);
+ uint8_t *data, int len);
/**
* Write <len> bytes block data to the slave at 8-bit slave address
* <slaveaddr>, at 16-bit <offset> in the slave's address space.
*/
int i2c_write_offset16_block(int port, int slave_addr, uint16_t offset,
- const uint8_t *data, int len);
-
+ const uint8_t *data, int len);
/**
* @return non-zero if i2c bus is busy