]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: tps65219: Fix is_enabled checking in tps65219_set_bypass
authorAxel Lin <axel.lin@ingics.com>
Mon, 19 Sep 2022 12:23:53 +0000 (20:23 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 26 Sep 2022 15:10:33 +0000 (16:10 +0100)
commit136773ae9910fadfcdcbdf2a43acf855f6e1cfe5
tree90fd5aa56673a12cc1135bd595d8f2545104110b
parent89d70981d52877400cbd4ed40391a5bd50727a72
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>
drivers/regulator/tps65219-regulator.c