summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/stv0297.c
diff options
context:
space:
mode:
authorAndrew de Quincy <devnull@localhost>2004-12-18 21:16:17 +0000
committerAndrew de Quincy <devnull@localhost>2004-12-18 21:16:17 +0000
commitfba943b2cc075f886246d7a24261386259732124 (patch)
treee5da5ce16fc013b7e7d207e5278f8c8e709cdcd0 /linux/drivers/media/dvb/frontends/stv0297.c
parent371e000a5ccf5c173e2506d9ea1d1fdae791545e (diff)
downloadmediapointer-dvb-s2-fba943b2cc075f886246d7a24261386259732124.tar.gz
mediapointer-dvb-s2-fba943b2cc075f886246d7a24261386259732124.tar.bz2
Added sleep support
Diffstat (limited to 'linux/drivers/media/dvb/frontends/stv0297.c')
-rw-r--r--linux/drivers/media/dvb/frontends/stv0297.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/stv0297.c b/linux/drivers/media/dvb/frontends/stv0297.c
index 3e34a3177..1b7a6511d 100644
--- a/linux/drivers/media/dvb/frontends/stv0297.c
+++ b/linux/drivers/media/dvb/frontends/stv0297.c
@@ -429,6 +429,15 @@ static int stv0297_init(struct dvb_frontend *fe)
return 0;
}
+static int stv0297_sleep(struct dvb_frontend *fe)
+{
+ struct stv0297_state *state = (struct stv0297_state *) fe->demodulator_priv;
+
+ stv0297_writereg_mask(state, 1, 1);
+
+ return 0;
+}
+
static int stv0297_read_status(struct dvb_frontend *fe, fe_status_t * status)
{
struct stv0297_state *state = (struct stv0297_state *) fe->demodulator_priv;
@@ -791,6 +800,7 @@ static struct dvb_frontend_ops stv0297_ops = {
.release = stv0297_release,
.init = stv0297_init,
+ .sleep = stv0297_sleep,
.set_frontend = stv0297_set_frontend,
.get_frontend = stv0297_get_frontend,