diff options
author | 2016-02-04 10:37:37 -0200 | |
---|---|---|
committer | 2016-02-04 16:27:28 -0200 | |
commit | 0fa301d796ce7d78d12cf35440143e3f232f5663 (patch) | |
tree | 501cc58d79e2383f402f742507bf52ad571a1fc0 /drivers/media/dvb-frontends/lgs8gxx.c | |
parent | [media] friio-fe: remove get_frontend() callback (diff) | |
download | linux-0fa301d796ce7d78d12cf35440143e3f232f5663.tar.gz linux-0fa301d796ce7d78d12cf35440143e3f232f5663.tar.bz2 linux-0fa301d796ce7d78d12cf35440143e3f232f5663.zip |
[media] lgs8gxx: don't export get_frontend() callback
This device doesn't really have a get_frontend(). All it does is
to blindly set everything to auto mode.
Remove the get_frontend(), as the code does that already,
and put the frontend changes at set_frontend, where it
belongs.
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/lgs8gxx.c')
-rw-r--r-- | drivers/media/dvb-frontends/lgs8gxx.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/media/dvb-frontends/lgs8gxx.c b/drivers/media/dvb-frontends/lgs8gxx.c index e2c191c8b196..919daeb96747 100644 --- a/drivers/media/dvb-frontends/lgs8gxx.c +++ b/drivers/media/dvb-frontends/lgs8gxx.c @@ -672,7 +672,7 @@ static int lgs8gxx_write(struct dvb_frontend *fe, const u8 buf[], int len) static int lgs8gxx_set_fe(struct dvb_frontend *fe) { - + struct dtv_frontend_properties *fe_params = &fe->dtv_property_cache; struct lgs8gxx_state *priv = fe->demodulator_priv; dprintk("%s\n", __func__); @@ -689,17 +689,7 @@ static int lgs8gxx_set_fe(struct dvb_frontend *fe) msleep(10); - return 0; -} - -static int lgs8gxx_get_fe(struct dvb_frontend *fe) -{ - struct dtv_frontend_properties *fe_params = &fe->dtv_property_cache; - dprintk("%s\n", __func__); - /* TODO: get real readings from device */ - /* inversion status */ - fe_params->inversion = INVERSION_OFF; /* bandwidth */ fe_params->bandwidth_hz = 8000000; @@ -1016,7 +1006,6 @@ static struct dvb_frontend_ops lgs8gxx_ops = { .i2c_gate_ctrl = lgs8gxx_i2c_gate_ctrl, .set_frontend = lgs8gxx_set_fe, - .get_frontend = lgs8gxx_get_fe, .get_tune_settings = lgs8gxx_get_tune_settings, .read_status = lgs8gxx_read_status, |