From: Mark Brown Date: Wed, 9 May 2012 20:16:06 +0000 (+0100) Subject: regulator: core: Allow regulators to provide a voltage to selector mapping X-Git-Tag: v3.5-rc1~177^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e843fc4616485bbd8b5a115f5bd4f73808656373;p=pandora-kernel.git regulator: core: Allow regulators to provide a voltage to selector mapping In order to allow more drivers to factor things out into data allow drivers to provide a mapping function to convert voltages into selectors. This allows any driver to use set_voltage_sel(). The existing mapping based on iterating over list_voltage() is provided as an operation which can be assigned to the new map_voltage() function though for ease of transition it is treated as the default. Signed-off-by: Mark Brown Acked-by: Liam Girdwood --- Reading git-diff-tree failed