[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 <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Andreas Oberritter 2011-04-08 13:37:57 -03:00 коммит произвёл Mauro Carvalho Chehab
Родитель 63952e8c4a
Коммит 15ed9d01b6
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -4024,6 +4024,8 @@ static int mxl5005s_set_params(struct dvb_frontend *fe,
case BANDWIDTH_8_MHZ: case BANDWIDTH_8_MHZ:
req_bw = MXL5005S_BANDWIDTH_8MHZ; req_bw = MXL5005S_BANDWIDTH_8MHZ;
break; break;
default:
return -EINVAL;
} }
} }