diff options
author | Mike Rapoport <mike.rapoport@gmail.com> | 2015-10-13 09:26:45 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-16 22:05:40 -0700 |
commit | 7092d76f144dc852b2143fe3daabc66fb794dba6 (patch) | |
tree | dddf257672556bb8da96c3ae1a8565bba78b2fb0 /drivers/staging/sm750fb | |
parent | 7751e0e2d2f2dd75e8e7adf96750ac403b799874 (diff) |
staging: sm750fb: rename getChipClock to get_mxclk_freq
The getChipClock is used to detect MXCLK frequency. Make it's name
reflect what the function is actually doing.
Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb')
-rw-r--r-- | drivers/staging/sm750fb/ddk750_chip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c index a27cde95be1d..77f3e43719db 100644 --- a/drivers/staging/sm750fb/ddk750_chip.c +++ b/drivers/staging/sm750fb/ddk750_chip.c @@ -34,7 +34,7 @@ logical_chip_type_t getChipType(void) return chip; } -static unsigned int getChipClock(void) +static unsigned int get_mxclk_freq(void) { unsigned int pll_reg; unsigned int M, N, OD, POD; @@ -100,7 +100,7 @@ static void setMemoryClock(unsigned int frequency) frequency = MHz(336); /* Calculate the divisor */ - divisor = (unsigned int)roundedDiv(getChipClock(), frequency); + divisor = (unsigned int)roundedDiv(get_mxclk_freq(), frequency); /* Set the corresponding divisor in the register. */ ulReg = PEEK32(CURRENT_GATE); @@ -147,7 +147,7 @@ static void setMasterClock(unsigned int frequency) frequency = MHz(190); /* Calculate the divisor */ - divisor = (unsigned int)roundedDiv(getChipClock(), frequency); + divisor = (unsigned int)roundedDiv(get_mxclk_freq(), frequency); /* Set the corresponding divisor in the register. */ ulReg = PEEK32(CURRENT_GATE); |