Skip to content

Commit 5a623ef

Browse files
lweiss-fairphonebroonie
authored andcommitted
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>
1 parent 32a4cd3 commit 5a623ef

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/regulator/devres.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static void devm_regulator_release(struct device *dev, void *res)
2020
}
2121

2222
static struct regulator *_devm_regulator_get(struct device *dev, const char *id,
23-
int get_type)
23+
enum regulator_get_type get_type)
2424
{
2525
struct regulator **ptr, *regulator;
2626

@@ -78,7 +78,7 @@ static void regulator_action_disable(void *d)
7878
}
7979

8080
static int _devm_regulator_get_enable(struct device *dev, const char *id,
81-
int get_type)
81+
enum regulator_get_type get_type)
8282
{
8383
struct regulator *r;
8484
int ret;
@@ -751,7 +751,7 @@ EXPORT_SYMBOL_GPL(devm_regulator_irq_helper);
751751

752752
#if IS_ENABLED(CONFIG_OF)
753753
static struct regulator *_devm_of_regulator_get(struct device *dev, struct device_node *node,
754-
const char *id, int get_type)
754+
const char *id, enum regulator_get_type get_type)
755755
{
756756
struct regulator **ptr, *regulator;
757757

0 commit comments

Comments
 (0)