Commit 15ed9d01b6d4f0df6ca282da0f840b7abfd7549d

Authored by Andreas Oberritter
Committed by Mauro Carvalho Chehab
1 parent 63952e8c4a

[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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

drivers/media/common/tuners/mxl5005s.c
... ... @@ -4024,6 +4024,8 @@
4024 4024 case BANDWIDTH_8_MHZ:
4025 4025 req_bw = MXL5005S_BANDWIDTH_8MHZ;
4026 4026 break;
  4027 + default:
  4028 + return -EINVAL;
4027 4029 }
4028 4030 }
4029 4031