diff options
author | Michael Krufky <mkrufky@kernellabs.com> | 2009-08-29 15:27:21 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@kernellabs.com> | 2009-08-29 15:27:21 -0400 |
commit | 0f8ff0b9984631b19106530b496b1c25651c6ef7 (patch) | |
tree | 83275c425bc77d61205ded9c4e1db77c590b4cd4 /linux | |
parent | ebef293c0b6ba62d4a02d8d46f99de346666dc20 (diff) | |
download | mediapointer-dvb-s2-0f8ff0b9984631b19106530b496b1c25651c6ef7.tar.gz mediapointer-dvb-s2-0f8ff0b9984631b19106530b496b1c25651c6ef7.tar.bz2 |
tda18271: move tda18271_sleep directly below tda18271_init
From: Michael Krufky <mkrufky@kernellabs.com>
Priority: normal
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/common/tuners/tda18271-fe.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/linux/drivers/media/common/tuners/tda18271-fe.c b/linux/drivers/media/common/tuners/tda18271-fe.c index 3cd6c0e74..0e1eea9f3 100644 --- a/linux/drivers/media/common/tuners/tda18271-fe.c +++ b/linux/drivers/media/common/tuners/tda18271-fe.c @@ -840,6 +840,21 @@ fail: 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) @@ -1032,21 +1047,6 @@ fail: 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; |