diff options
author | Olimpiu Pascariu <olimpiu.pascariu@gmail.com> | 2010-03-21 13:52:31 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-17 23:51:15 -0400 |
commit | 51e9dd3249eba4654f12a9473b8bfb5ddbf00d00 (patch) | |
tree | bc933775f897e63c4ca08942eb8b000c06796080 /drivers/staging | |
parent | 0dd8be8c94d0f273685092106daf0875d9287da0 (diff) |
V4L/DVB: cx25821: fix coding style issues in cx25821-i2c.c
Fixes up warnings and errors found by the checkpatch.pl tool
on cx25821-i2c.c
Signed-off-by: Olimpiu Pascariu <olimpiu.pascariu@gmail.com>
Cc: Palash Bandyopadhyay <palash.bandyopadhyay@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/cx25821/cx25821-i2c.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/cx25821/cx25821-i2c.c b/drivers/staging/cx25821/cx25821-i2c.c index f4f2681d8f1c..f727b85743ac 100644 --- a/drivers/staging/cx25821/cx25821-i2c.c +++ b/drivers/staging/cx25821/cx25821-i2c.c | |||
@@ -159,9 +159,9 @@ static int i2c_sendbytes(struct i2c_adapter *i2c_adap, | |||
159 | 159 | ||
160 | return msg->len; | 160 | return msg->len; |
161 | 161 | ||
162 | eio: | 162 | eio: |
163 | retval = -EIO; | 163 | retval = -EIO; |
164 | err: | 164 | err: |
165 | if (i2c_debug) | 165 | if (i2c_debug) |
166 | printk(KERN_ERR " ERR: %d\n", retval); | 166 | printk(KERN_ERR " ERR: %d\n", retval); |
167 | return retval; | 167 | return retval; |
@@ -223,9 +223,9 @@ static int i2c_readbytes(struct i2c_adapter *i2c_adap, | |||
223 | } | 223 | } |
224 | 224 | ||
225 | return msg->len; | 225 | return msg->len; |
226 | eio: | 226 | eio: |
227 | retval = -EIO; | 227 | retval = -EIO; |
228 | err: | 228 | err: |
229 | if (i2c_debug) | 229 | if (i2c_debug) |
230 | printk(KERN_ERR " ERR: %d\n", retval); | 230 | printk(KERN_ERR " ERR: %d\n", retval); |
231 | return retval; | 231 | return retval; |
@@ -266,7 +266,7 @@ static int i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) | |||
266 | } | 266 | } |
267 | return num; | 267 | return num; |
268 | 268 | ||
269 | err: | 269 | err: |
270 | return retval; | 270 | return retval; |
271 | } | 271 | } |
272 | 272 | ||
@@ -319,7 +319,7 @@ int cx25821_i2c_register(struct cx25821_i2c *bus) | |||
319 | 319 | ||
320 | bus->i2c_client.adapter = &bus->i2c_adap; | 320 | bus->i2c_client.adapter = &bus->i2c_adap; |
321 | 321 | ||
322 | //set up the I2c | 322 | /* set up the I2c */ |
323 | bus->i2c_client.addr = (0x88 >> 1); | 323 | bus->i2c_client.addr = (0x88 >> 1); |
324 | 324 | ||
325 | return bus->i2c_rc; | 325 | return bus->i2c_rc; |