All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 08/08] OMAP3: SR: Replace SR_PASS/FAIL,SR_TRUE/FALSE with standard kernel values
@ 2009-03-24 10:56 Reddy, Teerth
  0 siblings, 0 replies; only message in thread
From: Reddy, Teerth @ 2009-03-24 10:56 UTC (permalink / raw)
  To: linux-omap


From: Teerth Reddy <teerth@ti.com>

This patch has some cleanup , replacing SR_PASS/FAIL,SR_TRUE/FALSE
with standard kernel values.

Signed-off-by: Teerth Reddy <teerth@ti.com>

---
 arch/arm/mach-omap2/smartreflex.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

Index: linux-omap-pm/arch/arm/mach-omap2/smartreflex.c
===================================================================
--- linux-omap-pm.orig/arch/arm/mach-omap2/smartreflex.c	2009-03-24 14:42:33.000000000 +0530
+++ linux-omap-pm/arch/arm/mach-omap2/smartreflex.c	2009-03-24 14:45:59.336965640 +0530
@@ -411,7 +411,7 @@
 		if (retries_cnt > 10) {
 			pr_info("Loop count exceeded in check SR I2C"
 								"write\n");
-			return SR_FAIL;
+			return 1;
 		}
 		if (loop_cnt > 50) {
 			retries_cnt++;
@@ -421,7 +421,7 @@
 		vc_bypass_value = prm_read_mod_reg(OMAP3430_GR_MOD,
 					OMAP3_PRM_VC_BYPASS_VAL_OFFSET);
 	}
-	return SR_PASS;
+	return 0;
 }
 
 static int sr_enable(struct omap_sr *sr, u32 target_opp_no)
@@ -476,7 +476,7 @@
 	if (nvalue_reciprocal == 0) {
 		pr_notice("OPP%d doesn't support SmartReflex\n",
 								target_opp_no);
-		return SR_FALSE;
+		return false;
 	}
 
 	sr_write_reg(sr, NVALUERECIPROCAL, nvalue_reciprocal);
@@ -526,7 +526,7 @@
 
 	/* SRCONFIG - enable SR */
 	sr_modify_reg(sr, SRCONFIG, SRCONFIG_SRENABLE, SRCONFIG_SRENABLE);
-	return SR_TRUE;
+	return true;
 }
 
 static void sr_disable(struct omap_sr *sr)
@@ -591,11 +591,11 @@
 		sr->is_autocomp_active = 0;
 		/* Reset the volatage for current OPP */
 		sr_reset_voltage(srid);
-		return SR_TRUE;
+		return true;
 	} else {
 		pr_warning("SR%d: VDD autocomp is not active\n",
 								srid);
-		return SR_FALSE;
+		return false;
 	}
 
 }
@@ -711,7 +711,7 @@
 		if (retries_cnt > 10) {
 			pr_info("Loop count exceeded in check SR I2C"
 								"write\n");
-			return SR_FAIL;
+			return 1;
 		}
 		if (loop_cnt > 50) {
 			retries_cnt++;
@@ -731,7 +731,7 @@
 			sr_start_vddautocomap(SR2, target_opp_no);
 	}
 
-	return SR_PASS;
+	return 0;
 }
 
 /* Sysfs interface to select SR VDD1 auto compensation */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-24 10:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-24 10:56 [PATCH 08/08] OMAP3: SR: Replace SR_PASS/FAIL,SR_TRUE/FALSE with standard kernel values Reddy, Teerth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.