hwmon: (lm90) simplify using devm_regulator_get_enable()
authorMatti Vaittinen <mazziesaccount@gmail.com>
Fri, 21 Oct 2022 13:18:43 +0000 (16:18 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 5 Dec 2022 00:45:02 +0000 (16:45 -0800)
commitad804a4d82fc7ececb457c06c8ba8b3a9d0e3bfd
tree7fec52f6cfbda562d2bc86f635c82605ece42c25
parentdeeab9ea40dbaabdf0e2828b5c3da3418ae7dd39
hwmon: (lm90) 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().

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://lore.kernel.org/r/a1fa4364cbb775de25478117dd22dda0742089e3.1666357434.git.mazziesaccount@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm90.c