diff options
author | Tony Lindgren <tony@atomide.com> | 2019-08-27 14:52:05 -0700 |
---|---|---|
committer | Jacek Anaszewski <jacek.anaszewski@gmail.com> | 2019-09-01 13:33:27 +0200 |
commit | 070a0eed7580a976b397dce981db9746df714327 (patch) | |
tree | 1f1833d75533d88e2672b999e52dfefd07509801 /include | |
parent | 68bfcf6debd72121758d6e0fbf75f506126d7b9a (diff) | |
download | linux-stable-070a0eed7580a976b397dce981db9746df714327.tar.gz linux-stable-070a0eed7580a976b397dce981db9746df714327.tar.bz2 linux-stable-070a0eed7580a976b397dce981db9746df714327.zip |
leds: lm3532: Avoid potentially unpaired regulator calls
We may currently get unpaired regulator calls when configuring the LED
brightness via sysfs in case of regulator calls producing errors. Let's
fix this by maintaining local state for enabled.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions