diff options
author | Axel Lin <axel.lin@ingics.com> | 2022-09-19 15:23:53 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-09-26 18:10:33 +0300 |
commit | 947934e389f716d505a656d04388b2ecbe43281d (patch) | |
tree | 90fd5aa56673a12cc1135bd595d8f2545104110b /drivers/regulator/gpio-regulator.c | |
parent | 21c93a95553d0a07091ff9894f09f5bffbfd8c8a (diff) | |
download | linux-947934e389f716d505a656d04388b2ecbe43281d.tar.xz |
regulator: tps65219: Fix is_enabled checking in tps65219_set_bypass
Testing .enable cannot tell if a regulator is enabled or not, check return
value of .is_enabled() instead.
Also remove unneeded ret variable.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20220919122353.384171-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/gpio-regulator.c')
0 files changed, 0 insertions, 0 deletions