msm: rpm-regulator: fix voltage range selection

Voltage range selection currently loops the wrong way.  Fix this
in both rpm_vreg_set_voltage and vreg_set_voltage.

Signed-off-by: David Collins <collinsd@codeaurora.org>
diff --git a/arch/arm/mach-msm/rpm-regulator-8960.c b/arch/arm/mach-msm/rpm-regulator-8960.c
index 64e0483..52cc77d 100644
--- a/arch/arm/mach-msm/rpm-regulator-8960.c
+++ b/arch/arm/mach-msm/rpm-regulator-8960.c
@@ -704,7 +704,7 @@
 	}
 
 	/* Find the range which uV is inside of. */
-	for (i = vreg->set_points->count - 1; i > 0; i++) {
+	for (i = vreg->set_points->count - 1; i > 0; i--) {
 		if (uV > vreg->set_points->range[i - 1].max_uV) {
 			range = &vreg->set_points->range[i];
 			break;
@@ -1019,7 +1019,7 @@
 	}
 
 	/* Find the range which uV is inside of. */
-	for (i = vreg->set_points->count - 1; i > 0; i++) {
+	for (i = vreg->set_points->count - 1; i > 0; i--) {
 		if (uV > vreg->set_points->range[i - 1].max_uV) {
 			range = &vreg->set_points->range[i];
 			break;