From: Mark Brown Date: Tue, 3 Apr 2012 23:50:22 +0000 (+0100) Subject: regulator: core: Use a struct to pass in regulator runtime configuration X-Git-Tag: v3.5-rc1~177^2~58^3~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c172708d38a401b2f3f841dfcd862b469fa0b670;p=pandora-kernel.git regulator: core: Use a struct to pass in regulator runtime configuration Rather than adding new arguments to regulator_register() every time we want to add a new bit of dynamic information at runtime change the function to take these via a struct. By doing this we avoid needing to do further changes like the recent addition of device tree support which required each regulator driver to be updated to take an additional parameter. The regulator_desc which should (mostly) be static data is still passed separately as most drivers are able to configure this statically at build time. Signed-off-by: Mark Brown --- Reading git-diff-tree failed