[media] stb0899: sign extend raw CRL_FREQ value
authorReinhard Nißl <rnissl@gmx.de>
Sun, 2 Jun 2013 17:37:06 +0000 (14:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 8 Jun 2013 23:11:49 +0000 (20:11 -0300)
commitccac68f9818d0ff5c4cde26590a7f284285c724e
tree565b25f698fe86305b3cf58c096722b6a8167b08
parent703e60655ca520c5380d8c83a9db0d5e9b906856
[media] stb0899: sign extend raw CRL_FREQ value

Contrary to the chip's specs, the register's value is signed, so we
need to sign extend the value before using it in calculations like
when determining the offset frequency.

Signed-off-by: Reinhard Nißl <rnissl@gmx.de>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb-frontends/stb0899_algo.c