Fix issue when using devm_of_regulator_put_matches and
authorMark Brown <broonie@kernel.org>
Wed, 29 May 2024 17:11:37 +0000 (18:11 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 29 May 2024 17:11:37 +0000 (18:11 +0100)
commitf31f012d799cb3a1ab0e99db3694dd5616e59947
treeaf7b897027548b402261724df18ac9dd9fdebc24
parentc1ca3e2fa89164c01dfb78eca344c12a511d1762
parent334874910c8e88a728e60e1db332739a5a8ae89e
Fix issue when using devm_of_regulator_put_matches and

Merge series from Alina Yu <alina_yu@richtek.com>:

There are two types of LDO VOUT: fixed voltage mode and adjustable voltage mode.

As the fixed voltage for the LDO is outside the range of the adjustable voltage mode,
the constraints for this scenario are not suitable to represent both modes.
Therefore, A property is added to specify the fixed LDO VOUT.

In this version, a software bug has been fixed.
rtq2208_ldo_match is no longer a local variable.
It prevents invalid memory access when devm_of_regulator_put_matches is called.