Skip to content

Commit

Permalink
Staging: cx25821: Fix wrong statement indent in cx25821-i2c.c
Browse files Browse the repository at this point in the history
Fix wrong brace placement and statement indent in cx25821-i2c.c

Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
Reviewed-By: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Leonid V. Fedorenchik authored and Greg Kroah-Hartman committed Sep 12, 2011
1 parent 1c2b552 commit 7bfcbd6
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions drivers/staging/cx25821/cx25821-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,16 +370,16 @@ int cx25821_i2c_read(struct cx25821_i2c *bus, u16 reg_addr, int *value)

struct i2c_msg msgs[2] = {
{
.addr = client->addr,
.flags = 0,
.len = 2,
.buf = addr,
}, {
.addr = client->addr,
.flags = I2C_M_RD,
.len = 4,
.buf = buf,
}
.addr = client->addr,
.flags = 0,
.len = 2,
.buf = addr,
}, {
.addr = client->addr,
.flags = I2C_M_RD,
.len = 4,
.buf = buf,
}
};

addr[0] = (reg_addr >> 8);
Expand All @@ -403,11 +403,11 @@ int cx25821_i2c_write(struct cx25821_i2c *bus, u16 reg_addr, int value)

struct i2c_msg msgs[1] = {
{
.addr = client->addr,
.flags = 0,
.len = 6,
.buf = buf,
}
.addr = client->addr,
.flags = 0,
.len = 6,
.buf = buf,
}
};

buf[0] = reg_addr >> 8;
Expand Down

0 comments on commit 7bfcbd6

Please sign in to comment.