From: Axel Lin Date: Mon, 10 Dec 2012 11:46:52 +0000 (+0800) Subject: regulator: lp3971: Convert to get_voltage_sel X-Git-Tag: v3.9-rc1~154^2~14^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f38482fa700f18b72afbbaef8c4c4769c68c88ce;p=pandora-kernel.git regulator: lp3971: 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 BUCK_TARGET_VOL_MAX_IDX in lp3971_dcdc_get_voltage_sel. BUCK_TARGET_VOL_MIN_IDX and BUCK_TARGET_VOL_MAX_IDX are not used, remove them. Signed-off-by: Axel Lin Acked-by: Marek Szyprowski Signed-off-by: Mark Brown --- Reading git-diff-tree failed