diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-09-14 07:44:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-10-11 12:51:36 -0400 |
commit | 8f8a19fcc1a89b83d0ab6d7cf2bcdd272dbd4334 (patch) | |
tree | 0b00b608ac7f2461e3b7aa23e2545f06113a93dd /drivers/media/dvb-core/dvb_frontend.c | |
parent | b2c41ca9632e686e79f6c9db9c5f75666d37926e (diff) | |
download | linux-stable-8f8a19fcc1a89b83d0ab6d7cf2bcdd272dbd4334.tar.gz linux-stable-8f8a19fcc1a89b83d0ab6d7cf2bcdd272dbd4334.tar.bz2 linux-stable-8f8a19fcc1a89b83d0ab6d7cf2bcdd272dbd4334.zip |
media: dvb_frontend: get rid of get_property() callback
Only lg2160 implement gets_property, but there's no need for that,
as no other driver calls this callback, as get_frontend() does the
same, and set_frontend() also calls lg2160 get_frontend().
So, get rid of it.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Reviewed-by: Michael Ira Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-core/dvb_frontend.c')
-rw-r--r-- | drivers/media/dvb-core/dvb_frontend.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c index 2fcba1616168..cafc51b303e2 100644 --- a/drivers/media/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb-core/dvb_frontend.c @@ -1308,7 +1308,7 @@ static int dtv_property_process_get(struct dvb_frontend *fe, struct dtv_property *tvp, struct file *file) { - int r, ncaps; + int ncaps; switch(tvp->cmd) { case DTV_ENUM_DELSYS: @@ -1519,13 +1519,6 @@ static int dtv_property_process_get(struct dvb_frontend *fe, return -EINVAL; } - /* Allow the frontend to override outgoing properties */ - if (fe->ops.get_property) { - r = fe->ops.get_property(fe, tvp); - if (r < 0) - return r; - } - dtv_property_dump(fe, false, tvp); return 0; |