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)
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

Simple merge