From patchwork Sun May 8 19:17:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Kerrison X-Patchwork-Id: 6539 Return-path: Envelope-to: mchehab@gaivota Delivery-date: Sun, 08 May 2011 16:45:39 -0300 Received: from mchehab by gaivota with local (Exim 4.73) (envelope-from ) id 1QJ9v9-0006EQ-NN for mchehab@gaivota; Sun, 08 May 2011 16:45:39 -0300 Received: from casper.infradead.org [85.118.1.10] by gaivota with IMAP (fetchmail-6.3.19) for (single-drop); Sun, 08 May 2011 16:45:39 -0300 (BRT) Received: from vger.kernel.org ([209.132.180.67]) by casper.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1QJ9UH-0001zc-3R; Sun, 08 May 2011 19:17:53 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754839Ab1EHTRm (ORCPT + 1 other); Sun, 8 May 2011 15:17:42 -0400 Received: from stevekez.vm.bytemark.co.uk ([80.68.91.30]:55407 "EHLO stevekerrison.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754664Ab1EHTRk (ORCPT ); Sun, 8 May 2011 15:17:40 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by stevekerrison.com (Postfix) with ESMTP id 6F9F8163D1; Sun, 8 May 2011 20:17:39 +0100 (BST) X-Virus-Scanned: Debian amavisd-new at stevekerrison.com Received: from stevekerrison.com ([127.0.0.1]) by localhost (stevekez.vm.bytemark.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0j9Gy5Fxb79W; Sun, 8 May 2011 20:17:35 +0100 (BST) Received: from localhost.localdomain (94-193-106-123.zone7.bethere.co.uk [94.193.106.123]) (Authenticated sender: steve@stevekerrison.com) by stevekerrison.com (Postfix) with ESMTPSA id 7B44A1652D; Sun, 8 May 2011 20:17:33 +0100 (BST) From: Steve Kerrison To: Antti Palosaari , Mauro Carvalho Chehab , linux-media@vger.kernel.org Cc: Andreas Oberritter , Steve Kerrison Subject: [PATCH v2 3/5] mxl5005: Fix warning caused by new entries in an enum Date: Sun, 8 May 2011 20:17:18 +0100 Message-Id: <1304882240-23044-4-git-send-email-steve@stevekerrison.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <4DC6BF28.8070006@redhat.com> References: <4DC6BF28.8070006@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sender: Mauro Carvalho Chehab Additional bandwidth modes have been added in frontend.h mxl5005s.c had no default case so the compiler was warning about a non-exhausive switch statement. Signed-off-by: Steve Kerrison --- drivers/media/common/tuners/mxl5005s.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/media/common/tuners/mxl5005s.c b/drivers/media/common/tuners/mxl5005s.c index 0d6e094..d80e6f3 100644 --- a/drivers/media/common/tuners/mxl5005s.c +++ b/drivers/media/common/tuners/mxl5005s.c @@ -4020,6 +4020,10 @@ static int mxl5005s_set_params(struct dvb_frontend *fe, case BANDWIDTH_7_MHZ: req_bw = MXL5005S_BANDWIDTH_7MHZ; break; + default: + dprintk(1,"%s: Unsupported bandwidth mode %u, reverting to default\n", + __func__,params->u.ofdm.bandwidth); + /* Fall back to auto */ case BANDWIDTH_AUTO: case BANDWIDTH_8_MHZ: req_bw = MXL5005S_BANDWIDTH_8MHZ;