Skip to content

Commit

Permalink
mfd: da9062-core: Rename get_device_type to da9062_get_device_type
Browse files Browse the repository at this point in the history
Rename get_device_type() to da9062_get_device_type().
This function is only used in this file so make it static.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
  • Loading branch information
AxelLin authored and Lee Jones committed Oct 30, 2015
1 parent 5349ca1 commit 6f44b14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mfd/da9062-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ static int da9062_clear_fault_log(struct da9062 *chip)
return ret;
}

int get_device_type(struct da9062 *chip)
static int da9062_get_device_type(struct da9062 *chip)
{
int device_id, variant_id, variant_mrc;
int ret;
Expand Down Expand Up @@ -466,7 +466,7 @@ static int da9062_i2c_probe(struct i2c_client *i2c,
if (ret < 0)
dev_warn(chip->dev, "Cannot clear fault log\n");

ret = get_device_type(chip);
ret = da9062_get_device_type(chip);
if (ret)
return ret;

Expand Down

0 comments on commit 6f44b14

Please sign in to comment.