regulator: mt6360: De-capitalize devicetree regulator subnodes
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 9 Apr 2024 14:44:38 +0000 (16:44 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 9 Apr 2024 15:22:59 +0000 (16:22 +0100)
commitd3cf8a17498dd9104c04ad28eeac3ef3339f9f9f
treede12e315c9d34c94d2a0b92f49cf645e4f2988e9
parent7ab681ddedd4b6dd2b047c74af95221c5f827e1d
regulator: mt6360: De-capitalize devicetree regulator subnodes

The MT6360 regulator binding, the example in the MT6360 mfd binding, and
the devicetree users of those bindings are rightfully declaring MT6360
regulator subnodes with non-capital names, and luckily without using the
deprecated regulator-compatible property.

With this driver declaring capitalized BUCKx/LDOx as of_match string for
the node names, obviously no regulator gets probed: fix that by changing
the MT6360_REGULATOR_DESC macro to add a "match" parameter which gets
assigned to the of_match.

Fixes: d321571d5e4c ("regulator: mt6360: Add support for MT6360 regulator")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://msgid.link/r/20240409144438.410060-1-angelogioacchino.delregno@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mt6360-regulator.c