]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mfd: da9052-i2c: Staticize da9052_i2c_fix()
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 11 Feb 2013 20:48:01 +0000 (18:48 -0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 13 Feb 2013 23:26:41 +0000 (00:26 +0100)
da9052_i2c_fix() is only used locally, so let it be static.

Fix the following sparse warning:

drivers/mfd/da9052-i2c.c:63:5: warning: symbol 'da9052_i2c_fix' was not declared. Should it be static?

Cc: Ashish Jangam <ashish.jangam@kpitcummins.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/da9052-i2c.c

index 885e567803583a42473ffb532beead311ad68cf2..6a9fec40d018308a39e1ea24b086bfc94dfb77f0 100644 (file)
@@ -60,7 +60,7 @@ static inline bool i2c_safe_reg(unsigned char reg)
  * This fix is to follow any read or write with a dummy read to a safe
  * register.
  */
-int da9052_i2c_fix(struct da9052 *da9052, unsigned char reg)
+static int da9052_i2c_fix(struct da9052 *da9052, unsigned char reg)
 {
        int val;
 
@@ -85,7 +85,6 @@ int da9052_i2c_fix(struct da9052 *da9052, unsigned char reg)
 
        return 0;
 }
-EXPORT_SYMBOL(da9052_i2c_fix);
 
 static int da9052_i2c_enable_multiwrite(struct da9052 *da9052)
 {