lkml.org 
[lkml]   [2010]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] regulator: Copy constraints from regulators when initialising them
From
Date
On Mon, 2010-11-29 at 15:55 +0000, Mark Brown wrote:
> 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>

Applied.

Thanks

Liam
--
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk



\
 
 \ /
  Last update: 2010-11-30 16:17    [W:0.051 / U:1.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site