diff options
| author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-02-11 15:48:01 -0500 |
|---|---|---|
| committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-02-13 18:26:41 -0500 |
| commit | c3e9e6b67db23ae678550f861b5679880481cfa3 (patch) | |
| tree | 00efed7dd3bebf5451208e67073d8d17316a66ec | |
| parent | 75177deee91c17b374b827a832c0d2061ce0f07e (diff) | |
mfd: da9052-i2c: Staticize da9052_i2c_fix()
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>
| -rw-r--r-- | drivers/mfd/da9052-i2c.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mfd/da9052-i2c.c b/drivers/mfd/da9052-i2c.c index 885e56780358..6a9fec40d018 100644 --- a/drivers/mfd/da9052-i2c.c +++ b/drivers/mfd/da9052-i2c.c | |||
| @@ -60,7 +60,7 @@ static inline bool i2c_safe_reg(unsigned char reg) | |||
| 60 | * This fix is to follow any read or write with a dummy read to a safe | 60 | * This fix is to follow any read or write with a dummy read to a safe |
| 61 | * register. | 61 | * register. |
| 62 | */ | 62 | */ |
| 63 | int da9052_i2c_fix(struct da9052 *da9052, unsigned char reg) | 63 | static int da9052_i2c_fix(struct da9052 *da9052, unsigned char reg) |
| 64 | { | 64 | { |
| 65 | int val; | 65 | int val; |
| 66 | 66 | ||
| @@ -85,7 +85,6 @@ int da9052_i2c_fix(struct da9052 *da9052, unsigned char reg) | |||
| 85 | 85 | ||
| 86 | return 0; | 86 | return 0; |
| 87 | } | 87 | } |
| 88 | EXPORT_SYMBOL(da9052_i2c_fix); | ||
| 89 | 88 | ||
| 90 | static int da9052_i2c_enable_multiwrite(struct da9052 *da9052) | 89 | static int da9052_i2c_enable_multiwrite(struct da9052 *da9052) |
| 91 | { | 90 | { |
