summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/regulator/devres.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/regulator/devres.c b/drivers/regulator/devres.c
index 2cf03042fddf..615deba5d22c 100644
--- a/drivers/regulator/devres.c
+++ b/drivers/regulator/devres.c
@@ -20,7 +20,7 @@ static void devm_regulator_release(struct device *dev, void *res)
}
static struct regulator *_devm_regulator_get(struct device *dev, const char *id,
- int get_type)
+ enum regulator_get_type get_type)
{
struct regulator **ptr, *regulator;
@@ -78,7 +78,7 @@ static void regulator_action_disable(void *d)
}
static int _devm_regulator_get_enable(struct device *dev, const char *id,
- int get_type)
+ enum regulator_get_type get_type)
{
struct regulator *r;
int ret;
@@ -751,7 +751,7 @@ EXPORT_SYMBOL_GPL(devm_regulator_irq_helper);
#if IS_ENABLED(CONFIG_OF)
static struct regulator *_devm_of_regulator_get(struct device *dev, struct device_node *node,
- const char *id, int get_type)
+ const char *id, enum regulator_get_type get_type)
{
struct regulator **ptr, *regulator;