Skip to content

Commit 43728a6

Browse files
xhackerustcbroonie
authored andcommitted
regulator: tps6286x-regulator: Fix a copy & paste error
The volatile_reg function is named as tps6287x_volatile_reg by mistake when enabing the REGCACHE_MAPLE support. Signed-off-by: Jisheng Zhang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent b88b7e2 commit 43728a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/regulator/tps6286x-regulator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#define TPS6286X_MAX_MV 1675
2626
#define TPS6286X_STEP_MV 5
2727

28-
static bool tps6287x_volatile_reg(struct device *dev, unsigned int reg)
28+
static bool tps6286x_volatile_reg(struct device *dev, unsigned int reg)
2929
{
3030
return reg == TPS6286X_STATUS;
3131
}
@@ -34,7 +34,7 @@ static const struct regmap_config tps6286x_regmap_config = {
3434
.reg_bits = 8,
3535
.val_bits = 8,
3636
.cache_type = REGCACHE_MAPLE,
37-
.volatile_reg = tps6287x_volatile_reg,
37+
.volatile_reg = tps6286x_volatile_reg,
3838
};
3939

4040
static int tps6286x_set_mode(struct regulator_dev *rdev, unsigned int mode)

0 commit comments

Comments
 (0)