[PATCH v2 3/3] mfd: da9055: fix "REGULATOR" spelling in register content macro

Michael Klein
2020-11-27T12:53:05Z

"REGUALTOR" -> "REGULATOR"

Signed-off-by: Michael Klein <michael@fossekall.de>
---
Changes in v2:
- split patch
- make subject line more forthcoming

drivers/regulator/da9055-regulator.c | 4 ++--
include/linux/mfd/da9055/reg.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/regulator/da9055-regulator.c b/drivers/regulator/da9055-regulator.c
index 73ff5fc7d8d7..c0394ac5e60a 100644
--- a/drivers/regulator/da9055-regulator.c
+++ b/drivers/regulator/da9055-regulator.c
@@ -184,7 +184,7 @@ static int da9055_regulator_get_voltage_sel(struct regulator_dev *rdev)
ret &= info->conf.sel_mask;

/* Get the voltage for the active register set A/B */
- if (ret == DA9055_REGUALTOR_SET_A)
+ if (ret == DA9055_REGULATOR_SET_A)
ret = da9055_reg_read(regulator->da9055, volt.reg_a);
else
ret = da9055_reg_read(regulator->da9055, volt.reg_b);
@@ -231,7 +231,7 @@ static int da9055_regulator_set_voltage_sel(struct regulator_dev *rdev,
ret &= info->conf.sel_mask;

/* Set the voltage */
- if (ret == DA9055_REGUALTOR_SET_A)
+ if (ret == DA9055_REGULATOR_SET_A)
return da9055_reg_update(regulator->da9055, info->volt.reg_a,
info->volt.v_mask, selector);
else
diff --git a/include/linux/mfd/da9055/reg.h b/include/linux/mfd/da9055/reg.h
index 54a717b6c3de..1204e6b152d5 100644
--- a/include/linux/mfd/da9055/reg.h
+++ b/include/linux/mfd/da9055/reg.h
@@ -344,8 +344,8 @@
#define DA9055_VLDO_GPI_MASK 0x60
#define DA9055_LDO_CONF_SHIFT 0x07
#define DA9055_LDO_CONF_MASK 0x80
-#define DA9055_REGUALTOR_SET_A 0x00
-#define DA9055_REGUALTOR_SET_B 0x10
+#define DA9055_REGULATOR_SET_A 0x00
+#define DA9055_REGULATOR_SET_B 0x10

/* DA9055_REG_ADC_MAN (addr=0x1B) */
#define DA9055_ADC_MUX_SHIFT 0
--
2.29.2