aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/sm750fb
diff options
context:
space:
mode:
authorMike Rapoport <mike.rapoport@gmail.com>2015-09-30 08:24:54 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-30 12:26:20 +0200
commitfb6f37a8c842542093a2409792e8ef0f13411684 (patch)
tree232d6d69fb07e1283ddc1b6c9be5c049b63f4777 /drivers/staging/sm750fb
parentstaging: wilc1000: fix build error for openrisc-allmodconfig (diff)
downloadlinux-dev-fb6f37a8c842542093a2409792e8ef0f13411684.tar.xz
linux-dev-fb6f37a8c842542093a2409792e8ef0f13411684.zip
staging: sm750fb: staticize local functions in ddk750_chip
Several functions in ddk750_chip are not used elsewhere, let's make them static. 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.c12
-rw-r--r--drivers/staging/sm750fb/ddk750_chip.h5
2 files changed, 6 insertions, 11 deletions
diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c
index b2654ecd7c5b..d13574906dda 100644
--- a/drivers/staging/sm750fb/ddk750_chip.c
+++ b/drivers/staging/sm750fb/ddk750_chip.c
@@ -35,13 +35,13 @@ logical_chip_type_t getChipType(void)
return chip;
}
-inline unsigned int calcPLL(pll_value_t *pPLL)
+static inline unsigned int calcPLL(pll_value_t *pPLL)
{
return (pPLL->inputFreq * pPLL->M / pPLL->N / (1 << pPLL->OD) /
(1 << pPLL->POD));
}
-unsigned int getPllValue(clock_type_t clockType, pll_value_t *pPLL)
+static unsigned int getPllValue(clock_type_t clockType, pll_value_t *pPLL)
{
unsigned int ulPllReg = 0;
@@ -75,7 +75,7 @@ unsigned int getPllValue(clock_type_t clockType, pll_value_t *pPLL)
}
-unsigned int getChipClock(void)
+static unsigned int getChipClock(void)
{
pll_value_t pll;
#if 1
@@ -92,7 +92,7 @@ unsigned int getChipClock(void)
*
* Input: Frequency to be set.
*/
-void setChipClock(unsigned int frequency)
+static void setChipClock(unsigned int frequency)
{
pll_value_t pll;
unsigned int ulActualMxClk;
@@ -123,7 +123,7 @@ void setChipClock(unsigned int frequency)
-void setMemoryClock(unsigned int frequency)
+static void setMemoryClock(unsigned int frequency)
{
unsigned int ulReg, divisor;
#if 1
@@ -171,7 +171,7 @@ void setMemoryClock(unsigned int frequency)
* NOTE:
* The maximum frequency the engine can run is 168MHz.
*/
-void setMasterClock(unsigned int frequency)
+static void setMasterClock(unsigned int frequency)
{
unsigned int ulReg, divisor;
#if 1
diff --git a/drivers/staging/sm750fb/ddk750_chip.h b/drivers/staging/sm750fb/ddk750_chip.h
index 6ff043608fe9..d130bb8fef1f 100644
--- a/drivers/staging/sm750fb/ddk750_chip.h
+++ b/drivers/staging/sm750fb/ddk750_chip.h
@@ -78,11 +78,6 @@ unsigned int formatPllReg(pll_value_t *pPLL);
void ddk750_set_mmio(void __iomem *, unsigned short, char);
unsigned int ddk750_getVMSize(void);
int ddk750_initHw(initchip_param_t *);
-unsigned int getPllValue(clock_type_t clockType, pll_value_t *pPLL);
-unsigned int getChipClock(void);
-void setChipClock(unsigned int);
-void setMemoryClock(unsigned int frequency);
-void setMasterClock(unsigned int frequency);
#endif