Skip to content

Commit

Permalink
mfd: da9052-i2c: Staticize da9052_i2c_fix()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabio Estevam authored and Samuel Ortiz committed Feb 13, 2013
1 parent 75177de commit c3e9e6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/mfd/da9052-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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)
{
Expand Down

0 comments on commit c3e9e6b

Please sign in to comment.