Skip to content

Commit

Permalink
[media] fc2580: small improvements for chip id check
Browse files Browse the repository at this point in the history
* better readability
* make checkpatch.pl happy
* few bytes smaller binary footprint

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Sep 27, 2012
1 parent 2347e68 commit 132f56f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/media/tuners/fc2580.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,11 @@ struct dvb_frontend *fc2580_attach(struct dvb_frontend *fe,

dev_dbg(&priv->i2c->dev, "%s: chip_id=%02x\n", __func__, chip_id);

if ((chip_id != 0x56) && (chip_id != 0x5a)) {
switch (chip_id) {
case 0x56:
case 0x5a:
break;
default:
goto err;
}

Expand Down

0 comments on commit 132f56f

Please sign in to comment.