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)
commit087a1b5cdd555970feb8a340dc008b6914f05128
tree0765926362f9670c603f8f806441ecafd1534dbd
parent469a951446460da843028014a90100428ff6e0c1
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