diff options
author | Devin Heitmueller <dheitmueller@linuxtv.org> | 2009-03-15 17:48:52 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:27 -0400 |
commit | 62899a28008d635f25c3408b4cc46021f0cb34d3 (patch) | |
tree | c5c92a3617aecbfb2cfe4d964b2a8bda37652d46 /drivers/media/dvb/frontends/au8522_dig.c | |
parent | 3d62287e2c6c5b3351e04dd2c2209b2536995fdb (diff) |
V4L/DVB (11085): au0828/au8522: Codingstyle fixes
Take a pass over all of the au0828/au8522 files and cleanup all the codingstyle
issues. This patch does not make *any* functional change to the code.
Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/au8522_dig.c')
-rw-r--r-- | drivers/media/dvb/frontends/au8522_dig.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/dvb/frontends/au8522_dig.c b/drivers/media/dvb/frontends/au8522_dig.c index 7e24b914dbe5..35731258bb0a 100644 --- a/drivers/media/dvb/frontends/au8522_dig.c +++ b/drivers/media/dvb/frontends/au8522_dig.c | |||
@@ -36,16 +36,16 @@ static int debug; | |||
36 | static LIST_HEAD(hybrid_tuner_instance_list); | 36 | static LIST_HEAD(hybrid_tuner_instance_list); |
37 | static DEFINE_MUTEX(au8522_list_mutex); | 37 | static DEFINE_MUTEX(au8522_list_mutex); |
38 | 38 | ||
39 | #define dprintk(arg...) do { \ | 39 | #define dprintk(arg...)\ |
40 | if (debug) \ | 40 | do { if (debug)\ |
41 | printk(arg); \ | 41 | printk(arg);\ |
42 | } while (0) | 42 | } while (0) |
43 | 43 | ||
44 | /* 16 bit registers, 8 bit values */ | 44 | /* 16 bit registers, 8 bit values */ |
45 | int au8522_writereg(struct au8522_state *state, u16 reg, u8 data) | 45 | int au8522_writereg(struct au8522_state *state, u16 reg, u8 data) |
46 | { | 46 | { |
47 | int ret; | 47 | int ret; |
48 | u8 buf [] = { (reg >> 8) | 0x80, reg & 0xff, data }; | 48 | u8 buf[] = { (reg >> 8) | 0x80, reg & 0xff, data }; |
49 | 49 | ||
50 | struct i2c_msg msg = { .addr = state->config->demod_address, | 50 | struct i2c_msg msg = { .addr = state->config->demod_address, |
51 | .flags = 0, .buf = buf, .len = 3 }; | 51 | .flags = 0, .buf = buf, .len = 3 }; |
@@ -62,10 +62,10 @@ int au8522_writereg(struct au8522_state *state, u16 reg, u8 data) | |||
62 | u8 au8522_readreg(struct au8522_state *state, u16 reg) | 62 | u8 au8522_readreg(struct au8522_state *state, u16 reg) |
63 | { | 63 | { |
64 | int ret; | 64 | int ret; |
65 | u8 b0 [] = { (reg >> 8) | 0x40, reg & 0xff }; | 65 | u8 b0[] = { (reg >> 8) | 0x40, reg & 0xff }; |
66 | u8 b1 [] = { 0 }; | 66 | u8 b1[] = { 0 }; |
67 | 67 | ||
68 | struct i2c_msg msg [] = { | 68 | struct i2c_msg msg[] = { |
69 | { .addr = state->config->demod_address, .flags = 0, | 69 | { .addr = state->config->demod_address, .flags = 0, |
70 | .buf = b0, .len = 2 }, | 70 | .buf = b0, .len = 2 }, |
71 | { .addr = state->config->demod_address, .flags = I2C_M_RD, | 71 | { .addr = state->config->demod_address, .flags = I2C_M_RD, |