diff options
author | Michael Krufky <mkrufky@kernellabs.com> | 2009-08-29 15:27:21 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-18 23:13:44 -0400 |
commit | cc7e26d47f327a928e241b8d59b9203b469d692e (patch) | |
tree | 4040c7803da27b85276504769efbd5ee3c9efc93 /drivers/media/common/tuners/tda18271-fe.c | |
parent | 4240b460f0dbb4bf4e3f64e6abd423f476012756 (diff) |
V4L/DVB (12865): tda18271: move tda18271_sleep directly below tda18271_init
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/tuners/tda18271-fe.c')
-rw-r--r-- | drivers/media/common/tuners/tda18271-fe.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/media/common/tuners/tda18271-fe.c b/drivers/media/common/tuners/tda18271-fe.c index f6328bf3121e..e86d16979e75 100644 --- a/drivers/media/common/tuners/tda18271-fe.c +++ b/drivers/media/common/tuners/tda18271-fe.c | |||
@@ -839,6 +839,21 @@ fail: | |||
839 | return ret; | 839 | return ret; |
840 | } | 840 | } |
841 | 841 | ||
842 | static int tda18271_sleep(struct dvb_frontend *fe) | ||
843 | { | ||
844 | struct tda18271_priv *priv = fe->tuner_priv; | ||
845 | int ret; | ||
846 | |||
847 | mutex_lock(&priv->lock); | ||
848 | |||
849 | /* enter standby mode, with required output features enabled */ | ||
850 | ret = tda18271_toggle_output(fe, 1); | ||
851 | |||
852 | mutex_unlock(&priv->lock); | ||
853 | |||
854 | return ret; | ||
855 | } | ||
856 | |||
842 | /* ------------------------------------------------------------------ */ | 857 | /* ------------------------------------------------------------------ */ |
843 | 858 | ||
844 | static int tda18271_agc(struct dvb_frontend *fe) | 859 | static int tda18271_agc(struct dvb_frontend *fe) |
@@ -1031,21 +1046,6 @@ fail: | |||
1031 | return ret; | 1046 | return ret; |
1032 | } | 1047 | } |
1033 | 1048 | ||
1034 | static int tda18271_sleep(struct dvb_frontend *fe) | ||
1035 | { | ||
1036 | struct tda18271_priv *priv = fe->tuner_priv; | ||
1037 | int ret; | ||
1038 | |||
1039 | mutex_lock(&priv->lock); | ||
1040 | |||
1041 | /* enter standby mode, with required output features enabled */ | ||
1042 | ret = tda18271_toggle_output(fe, 1); | ||
1043 | |||
1044 | mutex_unlock(&priv->lock); | ||
1045 | |||
1046 | return ret; | ||
1047 | } | ||
1048 | |||
1049 | static int tda18271_release(struct dvb_frontend *fe) | 1049 | static int tda18271_release(struct dvb_frontend *fe) |
1050 | { | 1050 | { |
1051 | struct tda18271_priv *priv = fe->tuner_priv; | 1051 | struct tda18271_priv *priv = fe->tuner_priv; |