staging: sm750fb: simplify PLL divisors calculations
authorMike Rapoport <mike.rapoport@gmail.com>
Thu, 22 Oct 2015 06:38:40 +0000 (09:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:03:28 +0000 (19:03 -0700)
commita61dc139ceb5e9f0b2033fd1075ec68b53b14283
tree3b7fd84a53093336efaecc11e547c54b01c4458d
parentcfac7d6a70b41982c770838edd5c2a3b4dbe55e6
staging: sm750fb: simplify PLL divisors calculations

The calcPllValues currently uses arrays of PLL parametres that contain
possible PLL control register field values and redundant data that is
calculated according to those values. The usage of these arrays can be
replaced with simple arithmetics.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_chip.c