upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:48:08 +0000 (11:48 +0900)
commit265be84662d2a16a1c71feae6ab66cc7346f3efe
tree1787de878cc07fb0b5e6f364943bd9b860b4ca4a
parent9b1a27de3c37f3b1a275f293c2bf12e26af7840d
upstream: [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