From: Axel Lin Date: Fri, 8 Jun 2012 06:35:32 +0000 (+0800) Subject: regulator: tps62360: Simplify tps62360_set_voltage_time_sel implementation X-Git-Tag: v3.6-rc1~157^2^2~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e08ef739feec5341fe9382a9f5173ddd56c95f93;p=pandora-kernel.git regulator: tps62360: Simplify tps62360_set_voltage_time_sel implementation For linear mappings, we can use below equation to get the voltage difference between new_selector and old_selector: abs(new_selector - old_selector) * rdev->desc->uV_step Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed