From: "Nayak, Rajendra" <rnayak@ti.com>
To: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: [PATCH 09/10] OMAP3: SR: Replace SR_PASS/FAIL,SR_TRUE/FALSE
Date: Fri, 3 Apr 2009 21:39:24 +0530 [thread overview]
Message-ID: <5A47E75E594F054BAF48C5E4FC4B92AB02FB102C25@dbde02.ent.ti.com> (raw)
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
+++ linux-omap-pm/arch/arm/mach-omap2/smartreflex.c
@@ -410,7 +410,7 @@ static int sr_reset_voltage(int srid)
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++;
@@ -420,7 +420,7 @@ static int sr_reset_voltage(int srid)
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)
@@ -475,7 +475,7 @@ static int sr_enable(struct omap_sr *sr,
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);
@@ -525,7 +525,7 @@ static int sr_enable(struct omap_sr *sr,
/* 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)
@@ -590,11 +590,11 @@ int sr_stop_vddautocomap(int srid)
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;
}
}
@@ -710,7 +710,7 @@ int sr_voltagescale_vcbypass(u32 target_
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++;
@@ -730,7 +730,7 @@ int sr_voltagescale_vcbypass(u32 target_
sr_start_vddautocomap(SR2, target_opp_no);
}
- return SR_PASS;
+ return 0;
}
/* Sysfs interface to select SR VDD1 auto compensation */
next reply other threads:[~2009-04-03 16:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-03 16:09 Nayak, Rajendra [this message]
2009-04-15 12:55 [PATCH 09/10] OMAP3: SR: Replace SR_PASS/FAIL,SR_TRUE/FALSE Nayak, Rajendra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5A47E75E594F054BAF48C5E4FC4B92AB02FB102C25@dbde02.ent.ti.com \
--to=rnayak@ti.com \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.