Commit 6f44b148 authored by Axel Lin's avatar Axel Lin Committed by Lee Jones

mfd: da9062-core: Rename get_device_type to da9062_get_device_type

Rename get_device_type() to da9062_get_device_type().
This function is only used in this file so make it static.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 5349ca11
...@@ -198,7 +198,7 @@ static int da9062_clear_fault_log(struct da9062 *chip) ...@@ -198,7 +198,7 @@ static int da9062_clear_fault_log(struct da9062 *chip)
return ret; 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 device_id, variant_id, variant_mrc;
int ret; int ret;
...@@ -466,7 +466,7 @@ static int da9062_i2c_probe(struct i2c_client *i2c, ...@@ -466,7 +466,7 @@ static int da9062_i2c_probe(struct i2c_client *i2c,
if (ret < 0) if (ret < 0)
dev_warn(chip->dev, "Cannot clear fault log\n"); dev_warn(chip->dev, "Cannot clear fault log\n");
ret = get_device_type(chip); ret = da9062_get_device_type(chip);
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment