diff options
author | Tony Lindgren <tony@atomide.com> | 2019-08-28 00:52:05 +0300 |
---|---|---|
committer | Jacek Anaszewski <jacek.anaszewski@gmail.com> | 2019-09-01 14:33:27 +0300 |
commit | 070a0eed7580a976b397dce981db9746df714327 (patch) | |
tree | 1f1833d75533d88e2672b999e52dfefd07509801 /drivers/leds/leds-da903x.c | |
parent | 68bfcf6debd72121758d6e0fbf75f506126d7b9a (diff) | |
download | linux-070a0eed7580a976b397dce981db9746df714327.tar.xz |
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 'drivers/leds/leds-da903x.c')
0 files changed, 0 insertions, 0 deletions