diff options
author | Ingo Molnar <mingo@kernel.org> | 2014-04-14 16:44:42 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-04-14 16:44:42 +0200 |
commit | 740c699a8d316c8bf8593f19e2ca47795e690622 (patch) | |
tree | a78886955770a477945c5d84e06b2e7678733b54 /drivers/staging/wlags49_h2/wl_util.c | |
parent | perf/x86: Enable DRAM RAPL support on Intel Haswell (diff) | |
parent | Linux 3.15-rc1 (diff) | |
download | linux-dev-740c699a8d316c8bf8593f19e2ca47795e690622.tar.xz linux-dev-740c699a8d316c8bf8593f19e2ca47795e690622.zip |
Merge tag 'v3.15-rc1' into perf/urgent
Pick up the latest fixes.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/staging/wlags49_h2/wl_util.c')
-rw-r--r-- | drivers/staging/wlags49_h2/wl_util.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/drivers/staging/wlags49_h2/wl_util.c b/drivers/staging/wlags49_h2/wl_util.c index 4ca6e42ecd7e..75019c171d57 100644 --- a/drivers/staging/wlags49_h2/wl_util.c +++ b/drivers/staging/wlags49_h2/wl_util.c @@ -161,43 +161,6 @@ int dbm( int value ) - -/******************************************************************************* - * percent() - ******************************************************************************* - * - * DESCRIPTION: - * - * Return a value as a percentage of min to max. - * - * PARAMETERS: - * - * value - the value in question - * min - the minimum range value - * max - the maximum range value - * - * RETURNS: - * - * the percentage value - * - ******************************************************************************/ -int percent( int value, int min, int max ) -{ - /* Truncate the value to be between min and max. */ - if( value < min ) - value = min; - - if( value > max ) - value = max; - - /* Return the value as a percentage of min to max. */ - return ((( value - min ) * 100 ) / ( max - min )); -} // percent -/*============================================================================*/ - - - - /******************************************************************************* * is_valid_key_string() ******************************************************************************* |