summaryrefslogtreecommitdiff
path: root/drivers/staging/sm750fb/ddk750_chip.c
diff options
context:
space:
mode:
authorMike Rapoport <mike.rapoport@gmail.com>2016-02-10 19:33:57 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-12 06:52:37 +0300
commit5557eb17b3f14b92f2512d43ff6d68c6f0a609ef (patch)
tree9f3466352790d3f915557c6dc0e5cbd868907097 /drivers/staging/sm750fb/ddk750_chip.c
parent79254c60db6a5cbb72a9cb5eb1c3c50d6cdf755a (diff)
downloadlinux-5557eb17b3f14b92f2512d43ff6d68c6f0a609ef.tar.xz
staging: sm750fb: use BIT macro for PLL_CTRL single-bit fields
Replace complex defintion of PLL_CTRL fields with BIT() macro and use open-coded implementation for PLL register manipulations. 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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c
index 277e5c55f9e7..467b858c8d4a 100644
--- a/drivers/staging/sm750fb/ddk750_chip.c
+++ b/drivers/staging/sm750fb/ddk750_chip.c
@@ -363,10 +363,7 @@ unsigned int formatPllReg(pll_value_t *pPLL)
* register. On returning a 32 bit number, the value can be
* applied to any PLL in the calling function.
*/
- reg =
- FIELD_SET(0, PLL_CTRL, BYPASS, OFF)
- | FIELD_SET(0, PLL_CTRL, POWER, ON)
- | FIELD_SET(0, PLL_CTRL, INPUT, OSC)
+ reg = PLL_CTRL_POWER
#ifndef VALIDATION_CHIP
| FIELD_VALUE(0, PLL_CTRL, POD, pPLL->POD)
#endif