This patch sets the new field ena_gpio_valid for all drivers which set a
valid ena_gpio.
Signed-off-by: Markus Pargmann <mpa@xxxxxxxxxxxxxx>
---
diff --git a/drivers/regulator/s2mps11.c b/drivers/regulator/s2mps11.c
index b16c53a8272f..4d78477b9f57 100644
--- a/drivers/regulator/s2mps11.c
+++ b/drivers/regulator/s2mps11.c
@@ -986,6 +986,7 @@ common_reg:
config.of_node = rdata[i].of_node;
}
config.ena_gpio = s2mps11->ext_control_gpio[i];
+ config.ena_gpio_valid = true;
regulator = devm_regulator_register(&pdev->dev,
®ulators[i], &config);
diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c
index 0ab5cbeeb797..d258e6613831 100644
--- a/drivers/regulator/s5m8767.c
+++ b/drivers/regulator/s5m8767.c
@@ -466,6 +466,7 @@ static void s5m8767_regulator_config_ext_control(struct s5m8767_info *s5m8767,
}
config->ena_gpio = rdata->ext_control_gpio;
+ config->ena_gpio_valid = true;
config->ena_gpio_flags = GPIOF_OUT_INIT_HIGH;
}