diff options
author | Kevin Hilman <khilman@ti.com> | 2011-04-04 16:02:28 -0700 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-09-15 12:09:07 -0700 |
commit | 0ec3041e91cf365a76c81b224e85d3c2574fec23 (patch) | |
tree | 659b8817abe6399b008cdcbd5425d5fce0358204 /arch/arm/mach-omap2/voltage.c | |
parent | 633ef8b7475a224b6be662d7c698cd705157064f (diff) | |
download | linux-stable-0ec3041e91cf365a76c81b224e85d3c2574fec23.tar.gz linux-stable-0ec3041e91cf365a76c81b224e85d3c2574fec23.tar.bz2 linux-stable-0ec3041e91cf365a76c81b224e85d3c2574fec23.zip |
OMAP3+: VP: struct omap_vp_common: replace shift with __ffs(mask)
In struct omap_vp_common, the shift value can be derived from the mask
value by using __ffs(), so remove the shift value for the various
VPCONFIG bitfields, and use __ffs() in the code for the shift value.
While here, rename field names in kerneldoc comment to match actual
field names in structure. Also, cleanup indendentaion for other VP
register accesses in omap_vp_init().
No functional changes.
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/voltage.c')
-rw-r--r-- | arch/arm/mach-omap2/voltage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/voltage.c b/arch/arm/mach-omap2/voltage.c index eaa5f93021ae..5b16fd1fe373 100644 --- a/arch/arm/mach-omap2/voltage.c +++ b/arch/arm/mach-omap2/voltage.c @@ -82,7 +82,7 @@ static int __init _config_common_vdd_data(struct voltagedomain *voltdm) vdd->vp_rt_data.vpconfig_erroroffset = (voltdm->pmic->vp_erroroffset << - voltdm->vp->common->vpconfig_erroroffset_shift); + __ffs(voltdm->vp->common->vpconfig_erroroffset_mask)); timeout_val = (sys_clk_speed * voltdm->pmic->vp_timeout_us) / 1000; vdd->vp_rt_data.vlimitto_timeout = timeout_val; |