]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: qcom: Rework to single platform device
authorBjorn Andersson <bjorn.andersson@sonymobile.com>
Mon, 6 Apr 2015 23:33:59 +0000 (16:33 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 8 Apr 2015 11:22:14 +0000 (12:22 +0100)
commit43ba459e2059ac5665fc5a9aa0841b9827352ea4
tree0765926362f9670c603f8f806441ecafd1534dbd
parentafa634a6d07837bf1d55ecf7b11432ede7414740
regulator: qcom: Rework to single platform device

Modeling the individual RPM resources as platform devices consumes at
least 12-15kb of RAM, just to hold the platform_device structs. Rework
this to instead have one device per pmic exposed by the RPM.

With this representation we can more accurately define the input pins on
the pmic and have the supply description match the data sheet.

Suggested-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/qcom_rpm-regulator.c