diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2019-03-04 13:55:27 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-23 00:12:18 +0000 |
commit | 0cd7753c662d5a642acb12ff431c2e2a98466e28 (patch) | |
tree | 62b7625e41042fb1c8a054bfd6810e32f74f768f /include | |
parent | 09f808f671a92c8c3d444442b7887d68d905e1b1 (diff) | |
download | chrome-ec-0cd7753c662d5a642acb12ff431c2e2a98466e28.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>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1767510
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
Tested-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/i2c.h | 13 |
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 |