diff options
author | Steven Toth <stoth@linuxtv.org> | 2008-10-16 19:27:48 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-17 16:27:52 -0400 |
commit | b431c61642c086e93eec5198b974119f576481eb (patch) | |
tree | 29dc9d3be43c07dec4ab8af76bd23ac2f60c0daf /drivers/media/dvb | |
parent | b7709c0de24d9a05c70e13c939919fe90f09695d (diff) |
V4L/DVB (9259): s5h1411: Checkpatch compliance
s5h1411: Checkpatch compliance
Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/frontends/s5h1411.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/dvb/frontends/s5h1411.c b/drivers/media/dvb/frontends/s5h1411.c index 2da1a3763de9..2febfb5a846b 100644 --- a/drivers/media/dvb/frontends/s5h1411.c +++ b/drivers/media/dvb/frontends/s5h1411.c | |||
@@ -343,7 +343,7 @@ static int s5h1411_writereg(struct s5h1411_state *state, | |||
343 | u8 addr, u8 reg, u16 data) | 343 | u8 addr, u8 reg, u16 data) |
344 | { | 344 | { |
345 | int ret; | 345 | int ret; |
346 | u8 buf [] = { reg, data >> 8, data & 0xff }; | 346 | u8 buf[] = { reg, data >> 8, data & 0xff }; |
347 | 347 | ||
348 | struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = buf, .len = 3 }; | 348 | struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = buf, .len = 3 }; |
349 | 349 | ||
@@ -359,10 +359,10 @@ static int s5h1411_writereg(struct s5h1411_state *state, | |||
359 | static u16 s5h1411_readreg(struct s5h1411_state *state, u8 addr, u8 reg) | 359 | static u16 s5h1411_readreg(struct s5h1411_state *state, u8 addr, u8 reg) |
360 | { | 360 | { |
361 | int ret; | 361 | int ret; |
362 | u8 b0 [] = { reg }; | 362 | u8 b0[] = { reg }; |
363 | u8 b1 [] = { 0, 0 }; | 363 | u8 b1[] = { 0, 0 }; |
364 | 364 | ||
365 | struct i2c_msg msg [] = { | 365 | struct i2c_msg msg[] = { |
366 | { .addr = addr, .flags = 0, .buf = b0, .len = 1 }, | 366 | { .addr = addr, .flags = 0, .buf = b0, .len = 1 }, |
367 | { .addr = addr, .flags = I2C_M_RD, .buf = b1, .len = 2 } }; | 367 | { .addr = addr, .flags = I2C_M_RD, .buf = b1, .len = 2 } }; |
368 | 368 | ||