]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/regulator/max77693.c
regulator: max77693: Remove state container as it is not needed
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 10 Mar 2014 08:32:46 +0000 (09:32 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 10 Mar 2014 09:31:56 +0000 (09:31 +0000)
commit640c24a77b5691b5fe802b6f51fb4e2ae1bee846
tree2807a9296a69411ce350838de73fca60b6dcf96b
parentd9aa5c56317ee15ff7116ae05de7811f2fee5a46
regulator: max77693: Remove state container as it is not needed

Don't store pointers to regulator_dev returned by
devm_regulator_register() in allocated memory in state container. They
aren't used anywhere outside of max77693_pmic_probe() function.

This change allows removing completely the 'struct max77693_pmic_dev'
state container as none of its fields are used outside of probe.

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