regulator: Copy config passed during registration
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 5 Jan 2015 11:48:41 +0000 (12:48 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 8 Jan 2015 20:15:44 +0000 (20:15 +0000)
commit1b3de223385d6bf2ab9bf2e9e80aebb26fedd426
treedf211408227bee0a34a932cfe9bc4263141d8174
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
regulator: Copy config passed during registration

Copy the 'regulator_config' structure passed to regulator_register()
function so the driver could safely modify it after parsing init data.

The driver may want to change the config as a result of specific init
data parsed by regulator core (e.g. when core handled parsing device
tree).

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c