From: Axel Lin Date: Fri, 28 Dec 2012 00:23:16 +0000 (+0800) Subject: regulator: lp3972: Convert to get_voltage_sel X-Git-Tag: v3.9-rc1~154^2~13^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8c14a393ba3329552147870103f2d004bbcbcac;p=pandora-kernel.git regulator: lp3972: Convert to get_voltage_sel regulator_list_voltage_table() returns -EINVAL if selector >= n_voltages. Thus we don't need to check if reg is greater than LP3972_BUCK_VOL_MAX_IDX in lp3972_[ldo|dcdc]_get_voltage_sel. LP3972_BUCK_VOL_MIN_IDX and LP3972_BUCK_VOL_MAX_IDX are not used, remove them. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed