From: Axel Lin Date: Fri, 24 Feb 2012 06:52:45 +0000 (+0800) Subject: regulator: Fix the logic of s5m8767_set_voltage_time_sel X-Git-Tag: v3.4-rc1~168^2~4^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89e0f0e40002e0d95b7be079fa2c2133304ce09f;p=pandora-kernel.git regulator: Fix the logic of s5m8767_set_voltage_time_sel This patch includes below fixes: 1. The mask variable is not used at all here, remove it. 2. We already have the new_sel and old_sel, simply returns the delay by: DIV_ROUND_UP(desc->step * (new_sel - old_sel), s5m8767->ramp_delay); Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed