summaryrefslogtreecommitdiff
path: root/Documentation/SubmittingPatches
diff options
context:
space:
mode:
authorMatti Vaittinen <mazziesaccount@gmail.com>2022-08-12 13:10:37 +0300
committerMark Brown <broonie@kernel.org>2022-08-18 14:51:48 +0300
commitda279e6965b3838e99e5c0ab8f76b87bf86b31a5 (patch)
tree22bfffa0d0e38a97609bf8e3b39a1d5cb22fb550 /Documentation/SubmittingPatches
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868 (diff)
downloadlinux-da279e6965b3838e99e5c0ab8f76b87bf86b31a5.tar.xz
regulator: Add devm helpers for get and enable
A few regulator consumer drivers seem to be just getting a regulator, enabling it and registering a devm-action to disable the regulator at the driver detach and then forget about it. We can simplify this a bit by adding a devm-helper for this pattern. Add devm_regulator_get_enable() and devm_regulator_get_enable_optional() Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com> Link: https://lore.kernel.org/r/ed7b8841193bb9749d426f3cb3b199c9460794cd.1660292316.git.mazziesaccount@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/SubmittingPatches')
0 files changed, 0 insertions, 0 deletions