diff options
author | Mike Rapoport <mike.rapoport@gmail.com> | 2016-02-19 18:56:13 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-21 02:33:00 +0300 |
commit | e074da3f80a6a2c5eb4ed6758f143ee17ddbba56 (patch) | |
tree | 632a6f556997099e3aa1d3637c375af617198d9d /drivers/staging/sm750fb/ddk750_chip.c | |
parent | 0d5d733b4a3fc7c1fb8374691a083d719e160f19 (diff) | |
download | linux-e074da3f80a6a2c5eb4ed6758f143ee17ddbba56.tar.xz |
staging: sm750fb: replace absDiff with kernel standard abs macro
<linux/kernel.h> already has 'abs', use it instead of custom absDiff
Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb/ddk750_chip.c')
-rw-r--r-- | drivers/staging/sm750fb/ddk750_chip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c index e53a3d1271ac..02157f87d730 100644 --- a/drivers/staging/sm750fb/ddk750_chip.c +++ b/drivers/staging/sm750fb/ddk750_chip.c @@ -1,3 +1,4 @@ +#include <linux/kernel.h> #include <linux/sizes.h> #include "ddk750_help.h" @@ -335,7 +336,7 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll) unsigned int diff; tmpClock = pll->inputFreq * M / N / X; - diff = absDiff(tmpClock, request_orig); + diff = abs(tmpClock - request_orig); if (diff < mini_diff) { pll->M = M; pll->N = N; |