]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit4cf2ac4cd05b12090473e674ebe329f02d23869f
tree565b25f698fe86305b3cf58c096722b6a8167b08
parent6ed75a4387e0079226e7298687b4a3c6a3371dd0
[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