lib: isolate rational fractions helper function

Provide a helper function to determine optimum numerator
denominator value pairs taking into account restricted
register size. Useful especially with PLL and other clock
configurations.

Signed-off-by: Oskar Schirmer <os@emlix.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Oskar Schirmer
2009-06-11 14:51:15 +01:00
committed by Linus Torvalds
parent 9f322ad064
commit 8759ef32d9
4 changed files with 85 additions and 0 deletions
+3
View File
@@ -10,6 +10,9 @@ menu "Library routines"
config BITREVERSE
tristate
config RATIONAL
boolean
config GENERIC_FIND_FIRST_BIT
bool