[media] DVB: mxl5005s: handle new bandwidths by returning -EINVAL
authorAndreas Oberritter <obi@linuxtv.org>
Fri, 8 Apr 2011 16:37:57 +0000 (13:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 22:04:59 +0000 (19:04 -0300)
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 <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/mxl5005s.c

index 0d6e09419044b6e2c0dc421b6126223fdc36e411..56fe75c94deb7c6cded17507b957921077102d5b 100644 (file)
@@ -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;
                        }
                }