From patchwork Thu Oct 1 05:19:19 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiro TSUKADA X-Patchwork-Id: 50817 X-Patchwork-Delegate: dougsland@redhat.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n915Q2Tr017386 for ; Thu, 1 Oct 2009 05:26:02 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752004AbZJAFZ5 (ORCPT ); Thu, 1 Oct 2009 01:25:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751979AbZJAFZ5 (ORCPT ); Thu, 1 Oct 2009 01:25:57 -0400 Received: from smtp06.mail.tnz.yahoo.co.jp ([203.216.246.69]:48536 "HELO smtp06.mail.tnz.yahoo.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751969AbZJAFZ4 (ORCPT ); Thu, 1 Oct 2009 01:25:56 -0400 X-Greylist: delayed 399 seconds by postgrey-1.27 at vger.kernel.org; Thu, 01 Oct 2009 01:25:56 EDT Received: (qmail 34375 invoked by alias); 1 Oct 2009 05:19:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20050223; d=yahoo.co.jp; h=Received:X-Apparently-From:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=YQf3v1iFAAofnKsihwYpKuadmUzhfXs+W2DfuCLfKgVjVW36UK1AsiLFIuUKFsviviw+4U66wievatHkUGUBFjOFNZNO8aUA9bIC/SvizEogsb3hPU6ZVXBvAj9ef/aM ; Received: from unknown (HELO ribot.localdomain) (tskd2@220.28.115.38 with plain) by smtp06.mail.tnz.yahoo.co.jp with SMTP; 1 Oct 2009 05:19:20 -0000 X-Apparently-From: Message-ID: <4AC43BD7.5090203@yahoo.co.jp> Date: Thu, 01 Oct 2009 14:19:19 +0900 From: Akihiro TSUKADA User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3 MIME-Version: 1.0 To: Linux Media Mailing List CC: Mauro Carvalho Chehab Subject: [PATCH 2/2] dvb-usb-friio: cleaning up unnecessary functions References: <4AC43967.6070108@yahoo.co.jp> In-Reply-To: <4AC43967.6070108@yahoo.co.jp> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff --git a/linux/drivers/media/dvb/dvb-usb/friio-fe.c b/linux/drivers/media/dvb/dvb-usb/friio-fe.c --- a/linux/drivers/media/dvb/dvb-usb/friio-fe.c +++ b/linux/drivers/media/dvb/dvb-usb/friio-fe.c @@ -232,12 +232,6 @@ static int jdvbt90502_read_status(struct return 0; } -static int jdvbt90502_read_ber(struct dvb_frontend *fe, u32 *ber) -{ - *ber = 0; - return 0; -} - static int jdvbt90502_read_signal_strength(struct dvb_frontend *fe, u16 *strength) { @@ -264,27 +258,6 @@ static int jdvbt90502_read_signal_streng return 0; } -static int jdvbt90502_read_snr(struct dvb_frontend *fe, u16 *snr) -{ - *snr = 0x0101; - return 0; -} - -static int jdvbt90502_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks) -{ - *ucblocks = 0; - return 0; -} - -static int jdvbt90502_get_tune_settings(struct dvb_frontend *fe, - struct dvb_frontend_tune_settings *fs) -{ - fs->min_delay_ms = 500; - fs->step_size = 0; - fs->max_drift = 0; - - return 0; -} /* filter out un-supported properties to notify users */ static int jdvbt90502_set_property(struct dvb_frontend *fe, @@ -347,12 +320,6 @@ static int jdvbt90502_set_frontend(struc return 0; } -static int jdvbt90502_sleep(struct dvb_frontend *fe) -{ - deb_fe("%s called.\n", __func__); - return 0; -} - /** * (reg, val) commad list to initialize this module. @@ -493,18 +460,13 @@ static struct dvb_frontend_ops jdvbt9050 .release = jdvbt90502_release, .init = jdvbt90502_init, - .sleep = jdvbt90502_sleep, .write = _jdvbt90502_write, .set_property = jdvbt90502_set_property, .set_frontend = jdvbt90502_set_frontend, .get_frontend = jdvbt90502_get_frontend, - .get_tune_settings = jdvbt90502_get_tune_settings, .read_status = jdvbt90502_read_status, - .read_ber = jdvbt90502_read_ber, .read_signal_strength = jdvbt90502_read_signal_strength, - .read_snr = jdvbt90502_read_snr, - .read_ucblocks = jdvbt90502_read_ucblocks, };