diff options
| author | 2026-10-14 19:34:07 +0200 | |
|---|---|---|
| committer | 2026-11-02 07:00:04 -0800 | |
| commit | 378add65fd7d352de9fe440d167fde5bf511b090 (patch) | |
| tree | db4532dbd98693b7c33fb4dadd4455d854fa6527 /scripts | |
| parent | hwmon: chipcap2: enable IRQ processing when regulator is already enabled (diff) | |
hwmon: chipcap2: balance regulator state
The current implementation does not guarantee that the calls to
regulator_enable() and regulator_disable() are balanced.
regulator_is_enabled() might return a negative value, and an always-on
attribute in the DT might break the symmetry anyway.
Add a regulator_enabled flag to keep balance within this regulator
consumer.
Fixes: 3af350929e75 ("hwmon: Add support for Amphenol ChipCap 2")
Cc: stable@vger.kernel.org
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20261014-chipcap2_locks-v3-8-27ebfc2c5b9e@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
