]> git.dujemihanovic.xyz Git - u-boot.git/commit
power: regulator: palmas: fix ldoln and ldousb detection
authorSvyatoslav Ryhel <clamor95@gmail.com>
Fri, 27 Oct 2023 08:26:09 +0000 (11:26 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 3 Nov 2023 16:37:15 +0000 (12:37 -0400)
commit9b1d277471af2efc7974a6aede5b73f28b1d6287
tree6387fbbc66e33496480e43553963855e1948c602
parent8ab09b92dcac9f9ef0c78498f174ab87e9e286b0
power: regulator: palmas: fix ldoln and ldousb detection

dev->driver_data will carry the tail of ldo if there is a number and
if there is no number it will be an error code, anyway it will not be
zero. This results in a wrong ldo regulator detection.

To avoid this check for non-numerical ldo first and then manipulate
dev->driver_data.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
drivers/power/regulator/palmas_regulator.c