DVB: cx24123: fix PLL divisor setup
commit17983c7efc5a1e2deace277ade4ac9933c0db68f
authorYeasah Pell <yeasah@schwide.net>
Sun, 8 Oct 2006 18:41:43 +0000 (8 14:41 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Oct 2006 20:23:21 +0000 (13 13:23 -0700)
treee498c4b5e3387eea15055d1ac0d0cb58f3ce4604
parentc998b8df9876512097947fb3cbe3bb4397a05819
DVB: cx24123: fix PLL divisor setup

The cx24109 datasheet says: "NOTE: if A=0, then N=N+1"

The current code is the result of a misinterpretation of the datasheet to
mean exactly the opposite of the requirement -- The actual value of N is 1
greater than the value written when A is 0, so 1 needs to be *subtracted*
from it to compensate.

Signed-off-by: Yeasah Pell <yeasah@schwide.net>
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/dvb/frontends/cx24123.c