Commit b431c616 authored by Steven Toth's avatar Steven Toth Committed by Mauro Carvalho Chehab

V4L/DVB (9259): s5h1411: Checkpatch compliance

s5h1411: Checkpatch compliance
Signed-off-by: default avatarSteven Toth <stoth@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent b7709c0d
...@@ -343,7 +343,7 @@ static int s5h1411_writereg(struct s5h1411_state *state, ...@@ -343,7 +343,7 @@ static int s5h1411_writereg(struct s5h1411_state *state,
u8 addr, u8 reg, u16 data) u8 addr, u8 reg, u16 data)
{ {
int ret; int ret;
u8 buf [] = { reg, data >> 8, data & 0xff }; u8 buf[] = { reg, data >> 8, data & 0xff };
struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = buf, .len = 3 }; struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = buf, .len = 3 };
...@@ -359,10 +359,10 @@ static int s5h1411_writereg(struct s5h1411_state *state, ...@@ -359,10 +359,10 @@ static int s5h1411_writereg(struct s5h1411_state *state,
static u16 s5h1411_readreg(struct s5h1411_state *state, u8 addr, u8 reg) static u16 s5h1411_readreg(struct s5h1411_state *state, u8 addr, u8 reg)
{ {
int ret; int ret;
u8 b0 [] = { reg }; u8 b0[] = { reg };
u8 b1 [] = { 0, 0 }; u8 b1[] = { 0, 0 };
struct i2c_msg msg [] = { struct i2c_msg msg[] = {
{ .addr = addr, .flags = 0, .buf = b0, .len = 1 }, { .addr = addr, .flags = 0, .buf = b0, .len = 1 },
{ .addr = addr, .flags = I2C_M_RD, .buf = b1, .len = 2 } }; { .addr = addr, .flags = I2C_M_RD, .buf = b1, .len = 2 } };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment