diff options
author | Antti Palosaari <crope@iki.fi> | 2012-09-21 19:28:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-27 14:15:33 -0400 |
commit | 132f56fb3c83c032cd75cd99c2967905e65f8684 (patch) | |
tree | 88dcd6bc34fdca4e395650df8b66610a77eea505 /drivers/media/tuners | |
parent | 2347e6836ad2a5a2f7e62bd12b8f52fe15f04f74 (diff) |
[media] fc2580: small improvements for chip id check
* 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>
Diffstat (limited to 'drivers/media/tuners')
-rw-r--r-- | drivers/media/tuners/fc2580.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/tuners/fc2580.c b/drivers/media/tuners/fc2580.c index 51bc39ca0090..7db32ec4bd09 100644 --- a/drivers/media/tuners/fc2580.c +++ b/drivers/media/tuners/fc2580.c | |||
@@ -498,7 +498,11 @@ struct dvb_frontend *fc2580_attach(struct dvb_frontend *fe, | |||
498 | 498 | ||
499 | dev_dbg(&priv->i2c->dev, "%s: chip_id=%02x\n", __func__, chip_id); | 499 | dev_dbg(&priv->i2c->dev, "%s: chip_id=%02x\n", __func__, chip_id); |
500 | 500 | ||
501 | if ((chip_id != 0x56) && (chip_id != 0x5a)) { | 501 | switch (chip_id) { |
502 | case 0x56: | ||
503 | case 0x5a: | ||
504 | break; | ||
505 | default: | ||
502 | goto err; | 506 | goto err; |
503 | } | 507 | } |
504 | 508 | ||