From: Mark Brown Date: Wed, 9 May 2012 20:38:33 +0000 (+0100) Subject: regulator: core: Allow drivers to set simple linear voltage maps as data X-Git-Tag: v3.5-rc1~177^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bca7bbfff37808d56355bbcf0ceec34f0cc6c85d;p=pandora-kernel.git regulator: core: Allow drivers to set simple linear voltage maps as data A lot of regulator hardware maps selectors on to voltages with a simple linear mapping function selector = base + (selector * step size) Provide off the shelf list_voltage() and map_voltage() operations which use new min_uV and uV_step members in the regulator_desc to implement this function. Signed-off-by: Mark Brown Acked-by: Liam Girdwood --- Reading git-diff-tree failed