commit | 4e0d2931afb57ce1155ba80f87dcb2d87b80a764 | [log] [tgz] |
---|---|---|
author | Svyatoslav Ryhel <clamor95@gmail.com> | Fri Oct 27 11:26:09 2023 +0300 |
committer | Tom Rini <trini@konsulko.com> | Fri Nov 03 12:37:15 2023 -0400 |
tree | 6387fbbc66e33496480e43553963855e1948c602 | |
parent | c6951c33a2f6925bc8ec81efaa29cf741f8c7367 [diff] |
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>