]> git.ipfire.org Git - thirdparty/linux.git/commit
regulator: devres: Use enum regulator_get_type in internal functions
authorLuca Weiss <luca.weiss@fairphone.com>
Mon, 30 Mar 2026 14:14:13 +0000 (16:14 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 30 Mar 2026 14:44:06 +0000 (15:44 +0100)
commit5a623ef758d0a8384da548bb3f026e623544b2cf
tree48c5f403dade8b571da0ab59cec12b392217d0c3
parent32a4cd3d451ddec7c9ec04a2ec3f379ed7c5ff20
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>
drivers/regulator/devres.c