summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/Makefile
diff options
context:
space:
mode:
authorMatti Vaittinen <mazziesaccount@gmail.com>2022-10-21 16:19:04 +0300
committerGuenter Roeck <linux@roeck-us.net>2022-12-04 16:45:02 -0800
commitbba63de0c7a7e69584266872cb278cf12fe9ae83 (patch)
treee6c6832c3af3a243abd1e56c34fd1eae068e00a6 /drivers/hwmon/Makefile
parentad804a4d82fc7ececb457c06c8ba8b3a9d0e3bfd (diff)
downloadlinux-stable-bba63de0c7a7e69584266872cb278cf12fe9ae83.tar.gz
linux-stable-bba63de0c7a7e69584266872cb278cf12fe9ae83.tar.bz2
linux-stable-bba63de0c7a7e69584266872cb278cf12fe9ae83.zip
hwmon: (adm1177) simplify using devm_regulator_get_enable()
Drop open-coded pattern: 'devm_regulator_get(), regulator_enable(), add_action_or_reset(regulator_disable)' and use the devm_regulator_get_enable() and drop the pointer to the regulator. This simplifies code and makes it less tempting to add manual control for the regulator which is also controlled by devm. Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com> Link: https://lore.kernel.org/r/7773541795f280db31dd981ffc21df8a630b794a.1666357434.git.mazziesaccount@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/Makefile')
0 files changed, 0 insertions, 0 deletions