[media] dvb-frontends/cxd2841er: replace IFFREQ calc macros into functions
authorDaniel Scheller <d.scheller@gmx.net>
Sun, 9 Apr 2017 19:38:14 +0000 (16:38 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 20 Jun 2017 12:42:09 +0000 (09:42 -0300)
commitcbc85a47365a643046f4c6808fc0d99cd17a013f
tree921574ef76b2c453ae108e27bcc23f3fb6c96312
parent1ecda28c0dc2fc953f2bb4258b191e2dba5d539c
[media] dvb-frontends/cxd2841er: replace IFFREQ calc macros into functions

The way the MAKE_IFFREQ_CONFIG macros are written make it impossible to
pass regular integers for iffreq calculation, since this will cause "SSE
register return with SSE disabled" compile errors. This changes the
calculation into C functions which also might help when debugging. Also,
expand all passed frequencies from MHz to Hz scale.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Acked-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/cxd2841er.c