upstream: [media] xc2028: silence compiler warnings
authorAntti Palosaari <crope@iki.fi>
Sat, 1 Feb 2014 00:55:47 +0000 (21:55 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:54:48 +0000 (11:54 +0900)
commitea00717133a3943dbd6b6b2b717cbe1155e227c1
tree2f4a54c39e461774cbbd19b8357143094d59aefc
parent0bdba3e73f178c86ce96607340455bfd1a207e89
upstream: [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>
drivers/media/tuners/tuner-xc2028.c