diff options
| author | Luca Weiss <luca.weiss@fairphone.com> | 2026-03-30 16:14:13 +0200 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-03-30 15:44:06 +0100 |
| commit | 5a623ef758d0a8384da548bb3f026e623544b2cf (patch) | |
| tree | 48c5f403dade8b571da0ab59cec12b392217d0c3 /drivers/regulator | |
| parent | 32a4cd3d451ddec7c9ec04a2ec3f379ed7c5ff20 (diff) | |
regulator: devres: Use enum regulator_get_type in internal functions
The enum regulator_get_type has been available since 2017, so use that
enum instead of an "untyped" int in the three functions where "get_type"
is used.
No functional change intended.
Suggested-by: Griffin Kroah-Hartman <griffin.kroah@fairphone.com>
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Link: https://patch.msgid.link/20260330-regulator-devres-type-v1-1-d2c244576845@fairphone.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
| -rw-r--r-- | drivers/regulator/devres.c | 6 |
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; |
