summaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2014-01-31 21:55:47 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-03-05 15:35:25 -0300
commit96a5b3a869e3dc7d55bf04a48a8dca8a4025787e (patch)
tree631d6c33331496bac75c728cc461802bfea50171 /drivers/media/tuners
parent804a04e6ccbf0ad9778799f1d7684b229eebc27b (diff)
downloadop-kernel-dev-96a5b3a869e3dc7d55bf04a48a8dca8a4025787e.zip
op-kernel-dev-96a5b3a869e3dc7d55bf04a48a8dca8a4025787e.tar.gz
[media] xc2028: silence compiler warnings
There is now new tuner types which are not handled on that switch-case. Print error if unknown tuner type is meet. drivers/media/tuners/tuner-xc2028.c: In function ‘generic_set_freq’: drivers/media/tuners/tuner-xc2028.c:1037:2: warning: enumeration value ‘V4L2_TUNER_ADC’ not handled in switch [-Wswitch] switch (new_type) { ^ drivers/media/tuners/tuner-xc2028.c:1037:2: warning: enumeration value ‘V4L2_TUNER_RF’ not handled in switch [-Wswitch] Cc: Mauro Carvalho Chehab <m.chehab@samsung.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/tuners')
-rw-r--r--drivers/media/tuners/tuner-xc2028.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/tuners/tuner-xc2028.c b/drivers/media/tuners/tuner-xc2028.c
index cca508d..76a8165 100644
--- a/drivers/media/tuners/tuner-xc2028.c
+++ b/drivers/media/tuners/tuner-xc2028.c
@@ -1107,6 +1107,9 @@ static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */,
offset += 200000;
}
#endif
+ default:
+ tuner_err("Unsupported tuner type %d.\n", new_type);
+ break;
}
div = (freq - offset + DIV / 2) / DIV;
OpenPOWER on IntegriCloud