Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

+2 -3
-1
drivers/media/dvb-core/dvb_frontend.c
··· 81 81 #define FESTATE_SEARCHING_SLOW (FESTATE_TUNING_SLOW | FESTATE_ZIGZAG_SLOW) 82 82 #define FESTATE_LOSTLOCK (FESTATE_ZIGZAG_FAST | FESTATE_ZIGZAG_SLOW) 83 83 84 - #define FE_ALGO_HW 1 85 84 /* 86 85 * FESTATE_IDLE. No tuning parameters have been supplied and the loop is idling. 87 86 * FESTATE_RETUNE. Parameters have been supplied, but we have not yet performed the first tune.
+1 -1
drivers/media/dvb-frontends/cx24123.c
··· 1011 1011 1012 1012 static int cx24123_get_algo(struct dvb_frontend *fe) 1013 1013 { 1014 - return 1; /* FE_ALGO_HW */ 1014 + return DVBFE_ALGO_HW; 1015 1015 } 1016 1016 1017 1017 static void cx24123_release(struct dvb_frontend *fe)
+1 -1
drivers/media/dvb-frontends/s921.c
··· 466 466 467 467 static int s921_get_algo(struct dvb_frontend *fe) 468 468 { 469 - return 1; /* FE_ALGO_HW */ 469 + return DVBFE_ALGO_HW; 470 470 } 471 471 472 472 static void s921_release(struct dvb_frontend *fe)