[2/2] mfd: fix spelling mistakes
diff mbox series

Message ID 20201124183730.2250690-3-michael@fossekall.de
State New, archived
Headers show
Series
  • Fix spelling of "regulator"
Related show

Commit Message

Michael Klein Nov. 24, 2020, 6:37 p.m. UTC
Signed-off-by: Michael Klein <michael@fossekall.de>
---
 drivers/regulator/da9055-regulator.c | 4 ++--
 include/linux/mfd/da9055/reg.h       | 4 ++--
 include/linux/mfd/si476x-core.h      | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

Comments

Lee Jones Nov. 27, 2020, 9:31 a.m. UTC | #1
On Tue, 24 Nov 2020, Michael Klein wrote:

The subject line needs to be more forthcoming.

What spelling mistakes are you fixing?

Which files are being changed?

> Signed-off-by: Michael Klein <michael@fossekall.de>
> ---
>  drivers/regulator/da9055-regulator.c | 4 ++--
>  include/linux/mfd/da9055/reg.h       | 4 ++--
>  include/linux/mfd/si476x-core.h      | 2 +-
>  3 files changed, 5 insertions(+), 5 deletions(-)

Let's have a patch for each of these, with proper subject lines.

Patch
diff mbox series

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
diff --git a/include/linux/mfd/si476x-core.h b/include/linux/mfd/si476x-core.h
index 4708c2b8512a..dd95c37ca134 100644
--- a/include/linux/mfd/si476x-core.h
+++ b/include/linux/mfd/si476x-core.h
@@ -57,7 +57,7 @@  enum si476x_mfd_cells {
  * @SI476X_POWER_DOWN: In this state all regulators are turned off
  * and the reset line is pulled low. The device is completely
  * inactive.
- * @SI476X_POWER_UP_FULL: In this state all the power regualtors are
+ * @SI476X_POWER_UP_FULL: In this state all the power regulators are
  * turned on, reset line pulled high, IRQ line is enabled(polling is
  * active for polling use scenario) and device is turned on with
  * POWER_UP command. The device is ready to be used.