From: Mark Brown Date: Mon, 29 Nov 2010 15:55:17 +0000 (+0000) Subject: regulator: Copy constraints from regulators when initialising them X-Git-Tag: v2.6.38-rc1~242^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8c12fe329c8da9f50d8b2b1183eeaa4d587e747;p=pandora-kernel.git 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 Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed