staging: sm750fb: rename getChipClock to get_mxclk_freq
authorMike Rapoport <mike.rapoport@gmail.com>
Tue, 13 Oct 2015 06:26:45 +0000 (09:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:05:40 +0000 (22:05 -0700)
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>
drivers/staging/sm750fb/ddk750_chip.c

index a27cde95be1d3fe940873e7ee6f893e6e91c9055..77f3e43719db34dfcbe9ad8ac3cefe931da411f0 100644 (file)
@@ -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);