Commit 40badfa3 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Sebastian Reichel

power: supply: max17042_battery: Fix a typo in function names

It is likely that 'max10742_[un]lock_model()' functions should be
'max17042_[un]lock_model()'
(0 and 7 switched in 10742)
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 0e063317
...@@ -511,7 +511,7 @@ static inline void max17042_override_por(struct regmap *map, ...@@ -511,7 +511,7 @@ static inline void max17042_override_por(struct regmap *map,
regmap_write(map, reg, value); regmap_write(map, reg, value);
} }
static inline void max10742_unlock_model(struct max17042_chip *chip) static inline void max17042_unlock_model(struct max17042_chip *chip)
{ {
struct regmap *map = chip->regmap; struct regmap *map = chip->regmap;
...@@ -519,7 +519,7 @@ static inline void max10742_unlock_model(struct max17042_chip *chip) ...@@ -519,7 +519,7 @@ static inline void max10742_unlock_model(struct max17042_chip *chip)
regmap_write(map, MAX17042_MLOCKReg2, MODEL_UNLOCK2); regmap_write(map, MAX17042_MLOCKReg2, MODEL_UNLOCK2);
} }
static inline void max10742_lock_model(struct max17042_chip *chip) static inline void max17042_lock_model(struct max17042_chip *chip)
{ {
struct regmap *map = chip->regmap; struct regmap *map = chip->regmap;
...@@ -577,7 +577,7 @@ static int max17042_init_model(struct max17042_chip *chip) ...@@ -577,7 +577,7 @@ static int max17042_init_model(struct max17042_chip *chip)
if (!temp_data) if (!temp_data)
return -ENOMEM; return -ENOMEM;
max10742_unlock_model(chip); max17042_unlock_model(chip);
max17042_write_model_data(chip, MAX17042_MODELChrTbl, max17042_write_model_data(chip, MAX17042_MODELChrTbl,
table_size); table_size);
max17042_read_model_data(chip, MAX17042_MODELChrTbl, temp_data, max17042_read_model_data(chip, MAX17042_MODELChrTbl, temp_data,
...@@ -589,7 +589,7 @@ static int max17042_init_model(struct max17042_chip *chip) ...@@ -589,7 +589,7 @@ static int max17042_init_model(struct max17042_chip *chip)
temp_data, temp_data,
table_size); table_size);
max10742_lock_model(chip); max17042_lock_model(chip);
kfree(temp_data); kfree(temp_data);
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