regulator: tps51632-regulator: Fix spelling
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 20 Dec 2013 13:43:21 +0000 (11:43 -0200)
committerMark Brown <broonie@linaro.org>
Sat, 21 Dec 2013 14:19:33 +0000 (14:19 +0000)
Fix the 'VOLATGE' spell error.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/tps51632-regulator.c

index 3486be935bec367b3721476218028aec364b46f8..b3764f594ee933703394ebacd0e6610aa7c809bc 100644 (file)
 #define TPS51632_POWER_STATE_SINGLE_PHASE_CCM  0x1
 #define TPS51632_POWER_STATE_SINGLE_PHASE_DCM  0x2
 
-#define TPS51632_MIN_VOLATGE                   500000
-#define TPS51632_MAX_VOLATGE                   1520000
-#define TPS51632_VOLATGE_STEP_10mV             10000
-#define TPS51632_VOLATGE_STEP_20mV             20000
+#define TPS51632_MIN_VOLTAGE                   500000
+#define TPS51632_MAX_VOLTAGE                   1520000
+#define TPS51632_VOLTAGE_STEP_10mV             10000
+#define TPS51632_VOLTAGE_STEP_20mV             20000
 #define TPS51632_MAX_VSEL                      0x7F
 #define TPS51632_MIN_VSEL                      0x19
 #define TPS51632_DEFAULT_RAMP_DELAY            6000
 #define TPS51632_VOLT_VSEL(uV)                                 \
-               (DIV_ROUND_UP(uV - TPS51632_MIN_VOLATGE,        \
-                       TPS51632_VOLATGE_STEP_10mV) +           \
+               (DIV_ROUND_UP(uV - TPS51632_MIN_VOLTAGE,        \
+                       TPS51632_VOLTAGE_STEP_10mV) +           \
                        TPS51632_MIN_VSEL)
 
 /* TPS51632 chip information */
@@ -243,9 +243,9 @@ static struct tps51632_regulator_platform_data *
        pdata->dvfs_step_20mV = of_property_read_bool(np, "ti,dvfs-step-20mV");
 
        pdata->base_voltage_uV = pdata->reg_init_data->constraints.min_uV ? :
-                                       TPS51632_MIN_VOLATGE;
+                                       TPS51632_MIN_VOLTAGE;
        pdata->max_voltage_uV = pdata->reg_init_data->constraints.max_uV ? :
-                                       TPS51632_MAX_VOLATGE;
+                                       TPS51632_MAX_VOLTAGE;
        return pdata;
 }
 #else
@@ -284,15 +284,15 @@ static int tps51632_probe(struct i2c_client *client,
        }
 
        if (pdata->enable_pwm_dvfs) {
-               if ((pdata->base_voltage_uV < TPS51632_MIN_VOLATGE) ||
-                   (pdata->base_voltage_uV > TPS51632_MAX_VOLATGE)) {
+               if ((pdata->base_voltage_uV < TPS51632_MIN_VOLTAGE) ||
+                   (pdata->base_voltage_uV > TPS51632_MAX_VOLTAGE)) {
                        dev_err(&client->dev, "Invalid base_voltage_uV setting\n");
                        return -EINVAL;
                }
 
                if ((pdata->max_voltage_uV) &&
-                   ((pdata->max_voltage_uV < TPS51632_MIN_VOLATGE) ||
-                    (pdata->max_voltage_uV > TPS51632_MAX_VOLATGE))) {
+                   ((pdata->max_voltage_uV < TPS51632_MIN_VOLTAGE) ||
+                    (pdata->max_voltage_uV > TPS51632_MAX_VOLTAGE))) {
                        dev_err(&client->dev, "Invalid max_voltage_uV setting\n");
                        return -EINVAL;
                }
@@ -308,8 +308,8 @@ static int tps51632_probe(struct i2c_client *client,
        tps->desc.name = client->name;
        tps->desc.id = 0;
        tps->desc.ramp_delay = TPS51632_DEFAULT_RAMP_DELAY;
-       tps->desc.min_uV = TPS51632_MIN_VOLATGE;
-       tps->desc.uV_step = TPS51632_VOLATGE_STEP_10mV;
+       tps->desc.min_uV = TPS51632_MIN_VOLTAGE;
+       tps->desc.uV_step = TPS51632_VOLTAGE_STEP_10mV;
        tps->desc.linear_min_sel = TPS51632_MIN_VSEL;
        tps->desc.n_voltages = TPS51632_MAX_VSEL + 1;
        tps->desc.ops = &tps51632_dcdc_ops;