Skip to contentSkip to conversation

regulator: max8973: provide enable/disable if external control disabled

PATCH Applied Laxman Dewangan 2 participants 2 messages Nov 23, 2012 Voltage and current regulator framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 regulator: max8973: provide enable/disable if external control disabled

If external control is enabled then do not provide regulator enable/disable apis.

---
 drivers/regulator/max8973-regulator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/regulator/max8973-regulator.c +1 -1
index 140ff9d..3ee2638 100644
@@ -398,7 +398,7 @@ static int __devinit max8973_probe(struct i2c_client *client,
 	max->desc.uV_step = MAX8973_VOLATGE_STEP;
 	max->desc.n_voltages = MAX8973_BUCK_N_VOLTAGE;
 
-	if (pdata->enable_ext_control) {
+	if (!pdata->enable_ext_control) {
 		max->desc.enable_reg = MAX8973_VOUT;
 		max->desc.enable_mask = MAX8973_VOUT_ENABLE;
 		max8973_dcdc_ops.enable = regulator_enable_regmap;
Signature · 1 line
1.7.1.1
Applied
#1 lore raw
Quoted 2 lines · Laxman Dewangan

If external control is enabled then do not provide regulator enable/disable apis.

Applied, thanks.