summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/ts2020.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-12-27 22:35:44 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-12-27 22:36:27 +0100
commitf8c30b6f3bbea7eb8b25db7df61f8a7c24072480 (patch)
tree15db315b55abc8b927952249c7431dfcd352cf04 /drivers/media/dvb-frontends/ts2020.c
parent[media] make the other drivers take use of the new ts2020 driver (diff)
downloadlinux-f8c30b6f3bbea7eb8b25db7df61f8a7c24072480.tar.xz
linux-f8c30b6f3bbea7eb8b25db7df61f8a7c24072480.zip
[media] ts2020: fix two warnings added by changeset 73f0af4
drivers/media/dvb-frontends/ts2020.c: In function 'ts2020_set_params': drivers/media/dvb-frontends/ts2020.c:126:47: warning: variable 'div4' set but not used [-Wunused-but-set-variable] drivers/media/dvb-frontends/ts2020.c: At top level: drivers/media/dvb-frontends/ts2020.c:262:5: warning: no previous prototype for 'ts2020_get_signal_strength' [-Wmissing-prototypes] Cc: Konstantin Dimitrov <kosio.dimitrov@gmail.com> Cc: Igor M. Liplianin <liplianin@me.by> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/media/dvb-frontends/ts2020.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/dvb-frontends/ts2020.c b/drivers/media/dvb-frontends/ts2020.c
index 8dce4ae55f09..73010ecb9866 100644
--- a/drivers/media/dvb-frontends/ts2020.c
+++ b/drivers/media/dvb-frontends/ts2020.c
@@ -123,7 +123,7 @@ static int ts2020_set_params(struct dvb_frontend *fe)
{
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
- u8 mlpf, mlpf_new, mlpf_max, mlpf_min, nlpf, div4;
+ u8 mlpf, mlpf_new, mlpf_max, mlpf_min, nlpf;
u16 value, ndiv;
u32 srate = 0, f3db;
@@ -135,12 +135,10 @@ static int ts2020_set_params(struct dvb_frontend *fe)
ts2020_writereg(fe, 0x60, 0x79);
ts2020_writereg(fe, 0x08, 0x01);
ts2020_writereg(fe, 0x00, 0x01);
- div4 = 0;
/* calculate and set freq divider */
if (c->frequency < 1146000) {
ts2020_writereg(fe, 0x10, 0x11);
- div4 = 1;
ndiv = ((c->frequency * (6 + 8) * 4) +
(TS2020_XTAL_FREQ / 2)) /
TS2020_XTAL_FREQ - 1024;
@@ -259,7 +257,7 @@ static int ts2020_release(struct dvb_frontend *fe)
return 0;
}
-int ts2020_get_signal_strength(struct dvb_frontend *fe,
+static int ts2020_get_signal_strength(struct dvb_frontend *fe,
u16 *signal_strength)
{
u16 sig_reading, sig_strength;