Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96663
b: refs/heads/master
c: 20f4206
h: refs/heads/master
i:
  96661: 3f8fb69
  96659: 57d1373
  96655: 5daeac0
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed May 14, 2008
1 parent aff8aa6 commit 3917fdf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31940e3966b6cf3bb3e535ffa1cb97b16edd555b
refs/heads/master: 20f4206379260e3ca02c8ee57bc3da9b0c7d09da
12 changes: 7 additions & 5 deletions trunk/drivers/media/common/tuners/tda18271-fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,13 @@ static int tda18271c2_rf_tracking_filters_correction(struct dvb_frontend *fe,
struct tda18271_priv *priv = fe->tuner_priv;
struct tda18271_rf_tracking_filter_cal *map = priv->rf_cal_state;
unsigned char *regs = priv->tda18271_regs;
int tm_current, rfcal_comp, approx, i;
int tm_current, rfcal_comp, approx, i, ret;
u8 dc_over_dt, rf_tab;

/* power up */
tda18271_set_standby_mode(fe, 0, 0, 0);
ret = tda18271_set_standby_mode(fe, 0, 0, 0);
if (ret < 0)
goto fail;

/* read die current temperature */
tm_current = tda18271_read_thermometer(fe);
Expand Down Expand Up @@ -257,9 +259,9 @@ static int tda18271c2_rf_tracking_filters_correction(struct dvb_frontend *fe,
rfcal_comp = dc_over_dt * (tm_current - priv->tm_rfcal);

regs[R_EB14] = approx + rfcal_comp;
tda18271_write_regs(fe, R_EB14, 1);

return 0;
ret = tda18271_write_regs(fe, R_EB14, 1);
fail:
return ret;
}

static int tda18271_por(struct dvb_frontend *fe)
Expand Down

0 comments on commit 3917fdf

Please sign in to comment.