aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/s921.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-08-22 12:48:09 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-08-22 14:52:58 -0300
commit27460adc07a3f84e671dec71ac553818d5988003 (patch)
tree79692dbadcf5732f46717f39a699a591c57ec568 /drivers/media/dvb-frontends/s921.c
parent[media] dvb_frontend.h: document struct analog_demod_ops (diff)
downloadlinux-dev-27460adc07a3f84e671dec71ac553818d5988003.tar.xz
linux-dev-27460adc07a3f84e671dec71ac553818d5988003.zip
[media] dvb: Use DVBFE_ALGO_HW where applicable
The dvb_frontend.c core defines a FE_ALGO_HW symbol that it is never used. Also, both cx24123 returns 1 to get_algo() callback instead of using DVBFE_ALGO_HW. Probably, those are some left overs from some code cleanup. Let's stop returning magic numbers and use the proper macro value. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Acked-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'drivers/media/dvb-frontends/s921.c')
-rw-r--r--drivers/media/dvb-frontends/s921.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/s921.c b/drivers/media/dvb-frontends/s921.c
index b2d9fe13e1a0..d6a8fa63040b 100644
--- a/drivers/media/dvb-frontends/s921.c
+++ b/drivers/media/dvb-frontends/s921.c
@@ -466,7 +466,7 @@ static int s921_tune(struct dvb_frontend *fe,
static int s921_get_algo(struct dvb_frontend *fe)
{
- return 1; /* FE_ALGO_HW */
+ return DVBFE_ALGO_HW;
}
static void s921_release(struct dvb_frontend *fe)