Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285541
b: refs/heads/master
c: 16e3d13
h: refs/heads/master
i:
  285539: 491b1be
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 31, 2011
1 parent 63bfc8b commit 3df1693
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 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: 5f82e6b18cb48e261f0a15a7f12c843b488234a5
refs/heads/master: 16e3d13152797fc2ae66b948cd3229e9551896c3
19 changes: 10 additions & 9 deletions trunk/drivers/media/dvb/frontends/s921.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@ static int s921_i2c_readreg(struct s921_state *state, u8 i2c_addr, u8 reg)
s921_i2c_writeregdata(state, state->config->demod_address, \
regdata, ARRAY_SIZE(regdata))

static int s921_pll_tune(struct dvb_frontend *fe,
struct dvb_frontend_parameters *p)
static int s921_pll_tune(struct dvb_frontend *fe)
{
struct dtv_frontend_properties *p = &fe->dtv_property_cache;
struct s921_state *state = fe->demodulator_priv;
int band, rc, i;
unsigned long f_offset;
Expand Down Expand Up @@ -414,17 +414,17 @@ static int s921_read_signal_strength(struct dvb_frontend *fe, u16 *strength)
return 0;
}

static int s921_set_frontend(struct dvb_frontend *fe,
struct dvb_frontend_parameters *p)
static int s921_set_frontend(struct dvb_frontend *fe)
{
struct dtv_frontend_properties *p = &fe->dtv_property_cache;
struct s921_state *state = fe->demodulator_priv;
int rc;

dprintk("\n");

/* FIXME: We don't know how to use non-auto mode */

rc = s921_pll_tune(fe, p);
rc = s921_pll_tune(fe);
if (rc < 0)
return rc;

Expand All @@ -434,7 +434,7 @@ static int s921_set_frontend(struct dvb_frontend *fe,
}

static int s921_get_frontend(struct dvb_frontend *fe,
struct dvb_frontend_parameters *p)
struct dtv_frontend_properties *p)
{
struct s921_state *state = fe->demodulator_priv;

Expand All @@ -455,7 +455,7 @@ static int s921_tune(struct dvb_frontend *fe,
dprintk("\n");

if (params != NULL)
rc = s921_set_frontend(fe, params);
rc = s921_set_frontend(fe);

if (!(mode_flags & FE_TUNE_MODE_ONESHOT))
s921_read_status(fe, status);
Expand Down Expand Up @@ -510,6 +510,7 @@ struct dvb_frontend *s921_attach(const struct s921_config *config,
EXPORT_SYMBOL(s921_attach);

static struct dvb_frontend_ops s921_ops = {
.delsys = { SYS_ISDBT },
/* Use dib8000 values per default */
.info = {
.name = "Sharp S921",
Expand All @@ -534,8 +535,8 @@ static struct dvb_frontend_ops s921_ops = {
.release = s921_release,

.init = s921_initfe,
.set_frontend_legacy = s921_set_frontend,
.get_frontend_legacy = s921_get_frontend,
.set_frontend = s921_set_frontend,
.get_frontend = s921_get_frontend,
.read_status = s921_read_status,
.read_signal_strength = s921_read_signal_strength,
.tune = s921_tune,
Expand Down

0 comments on commit 3df1693

Please sign in to comment.