Skip to content

Commit

Permalink
V4L/DVB (12865): tda18271: move tda18271_sleep directly below tda1827…
Browse files Browse the repository at this point in the history
…1_init

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Sep 19, 2009
1 parent 4240b46 commit cc7e26d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions drivers/media/common/tuners/tda18271-fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,21 @@ static int tda18271_init(struct dvb_frontend *fe)
return ret;
}

static int tda18271_sleep(struct dvb_frontend *fe)
{
struct tda18271_priv *priv = fe->tuner_priv;
int ret;

mutex_lock(&priv->lock);

/* enter standby mode, with required output features enabled */
ret = tda18271_toggle_output(fe, 1);

mutex_unlock(&priv->lock);

return ret;
}

/* ------------------------------------------------------------------ */

static int tda18271_agc(struct dvb_frontend *fe)
Expand Down Expand Up @@ -1031,21 +1046,6 @@ static int tda18271_set_analog_params(struct dvb_frontend *fe,
return ret;
}

static int tda18271_sleep(struct dvb_frontend *fe)
{
struct tda18271_priv *priv = fe->tuner_priv;
int ret;

mutex_lock(&priv->lock);

/* enter standby mode, with required output features enabled */
ret = tda18271_toggle_output(fe, 1);

mutex_unlock(&priv->lock);

return ret;
}

static int tda18271_release(struct dvb_frontend *fe)
{
struct tda18271_priv *priv = fe->tuner_priv;
Expand Down

0 comments on commit cc7e26d

Please sign in to comment.