hwmon: (pwm-fan) Add dedicated power switch function
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Wed, 14 Sep 2022 15:31:35 +0000 (17:31 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 25 Sep 2022 21:22:10 +0000 (14:22 -0700)
commit9bf3aa60808803d56cb34bdff336e85c87c8026d
tree76a07b86ebd5c9e1eb420a769eddd1fbba3d54d4
parentb77f0c7680a4df2a550be5e0158204de1aa3a3ce
hwmon: (pwm-fan) Add dedicated power switch function

This handles enabling/disabling the regulator in a single function, while
keeping the enables/disabled balanced. This is a preparation when
regulator is switched from different code paths.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Link: https://lore.kernel.org/r/20220914153137.613982-4-alexander.stein@ew.tq-group.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pwm-fan.c