summaryrefslogtreecommitdiff
path: root/drivers/regulator/mc13783-regulator.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-11-29 15:55:17 (GMT)
committerLiam Girdwood <lrg@slimlogic.co.uk>2011-01-12 14:33:01 (GMT)
commitf8c12fe329c8da9f50d8b2b1183eeaa4d587e747 (patch)
tree8ec2dee6efcf6a6a96e161bf9a86c6d9befb2a58 /drivers/regulator/mc13783-regulator.c
parentf4d6adf11b0a596ac4fee2fb2591f286de35c088 (diff)
downloadlinux-fsl-qoriq-f8c12fe329c8da9f50d8b2b1183eeaa4d587e747.tar.xz
regulator: Copy constraints from regulators when initialising them
Currently the regulator API uses the constraints structure passed in to the core throughout the lifetime of the object. This means that it is not possible to mark the constraints as __initdata so if the kernel supports many boards the constraints for all of them are kept around throughout the lifetime of the system, consuming memory needlessly. By copying constraints that are actually used we allow the use of __initdata, saving memory when multiple boards are supported. This also means the constraints can be const. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator/mc13783-regulator.c')
0 files changed, 0 insertions, 0 deletions