]> git.ipfire.org Git - thirdparty/u-boot.git/commit
power: pmic: mtk-pwrap: use pmic compatible to select child info
authorDavid Lechner <dlechner@baylibre.com>
Thu, 9 Apr 2026 20:30:38 +0000 (15:30 -0500)
committerDavid Lechner <dlechner@baylibre.com>
Wed, 29 Apr 2026 14:26:48 +0000 (09:26 -0500)
commitdf660cc7b26aa4287bb2ae6cd56e58ac59a805f2
tree4b08488fdda1de0e0ab85f86f658e4b2429fd18a
parent27fdacf4208e30f3ae8f8ee97f268d4a164b7dea
power: pmic: mtk-pwrap: use pmic compatible to select child info

Change the logic for selecting pmic_children_info to use the compatible
string from the devicetree instead of expecting the pwrap (part of the
MCU) to correspond to the separate PMIC chip.

In addition to being more correct, it also saves a few lines of code for
each MCU type that is added by dropping the enum and type field.

Reviewed-by: Julien Stephan <jstephan@baylibre.com>
Link: https://patch.msgid.link/20260409-mtk-pmic-fixes-v2-6-73e83aa6345b@baylibre.com
Signed-off-by: David Lechner <dlechner@baylibre.com>
drivers/power/pmic/mtk-pwrap.c