From: Axel Lin Date: Thu, 7 Jun 2012 02:05:14 +0000 (+0800) Subject: regulator: core: Handle fixed voltage in map_voltage_linear X-Git-Tag: v3.6-rc1~157^2^2~129 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a6881e8e134ea636bbc8423049e84638dbb7106;p=pandora-kernel.git regulator: core: Handle fixed voltage in map_voltage_linear Fixed voltage is a kind of linear mapping where n_voltages is 1. This change allows [list|map]_voltage_linear to be used for fixed voltage. For fixed voltage, n_voltages is 1 and the only valid selector is 0. Thus we actually don't care the uV_step setting. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed