From: Heiko Stübner Date: Tue, 7 Aug 2012 22:50:19 +0000 (+0200) Subject: regulator: gpio-regulator: Split setting of voltages and currents X-Git-Tag: v3.6-rc3~24^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb0c5686b3c6332892b3eb5d8bb9eb04f943cb25;p=pandora-kernel.git regulator: gpio-regulator: Split setting of voltages and currents Originally gpio-regulator used the first item of its state list that matched the given voltage or current range. Commit 4dbd8f63f0 (regulator: gpio-regulator: Set the smallest voltage/current in the specified range) changed this, to make the selection independent of the ordering of the state list. But selecting the minimal value is only true for voltage regulators. For current regulators the maximum in the given range should be selected instead. Therefore split the previous common selection function into specific functions for voltage and current regulators. Signed-off-by: Heiko Stuebner Signed-off-by: Mark Brown --- Reading git-diff-tree failed