From: Andreas Oberritter Date: Fri, 8 Apr 2011 16:37:57 +0000 (-0300) Subject: [media] DVB: mxl5005s: handle new bandwidths by returning -EINVAL X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=15ed9d01b6d4f0df6ca282da0f840b7abfd7549d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] DVB: mxl5005s: handle new bandwidths by returning -EINVAL drivers/media/common/tuners/mxl5005s.c: In function ‘mxl5005s_set_params’: drivers/media/common/tuners/mxl5005s.c:4016: warning: enumeration value ‘BANDWIDTH_5_MHZ’ not handled in switch drivers/media/common/tuners/mxl5005s.c:4016: warning: enumeration value ‘BANDWIDTH_10_MHZ’ not handled in switch drivers/media/common/tuners/mxl5005s.c:4016: warning: enumeration value ‘BANDWIDTH_1_712_MHZ’ not handled in switch Signed-off-by: Andreas Oberritter Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/common/tuners/mxl5005s.c b/drivers/media/common/tuners/mxl5005s.c index 0d6e09419044..56fe75c94deb 100644 --- a/drivers/media/common/tuners/mxl5005s.c +++ b/drivers/media/common/tuners/mxl5005s.c @@ -4024,6 +4024,8 @@ static int mxl5005s_set_params(struct dvb_frontend *fe, case BANDWIDTH_8_MHZ: req_bw = MXL5005S_BANDWIDTH_8MHZ; break; + default: + return -EINVAL; } }