]> git.karo-electronics.de Git - karo-tx-linux.git/commit
OMAP3+: VP: struct omap_vp_common: replace shift with __ffs(mask)
authorKevin Hilman <khilman@ti.com>
Mon, 4 Apr 2011 23:02:28 +0000 (16:02 -0700)
committerKevin Hilman <khilman@ti.com>
Thu, 15 Sep 2011 19:09:07 +0000 (12:09 -0700)
commit0ec3041e91cf365a76c81b224e85d3c2574fec23
tree659b8817abe6399b008cdcbd5425d5fce0358204
parent633ef8b7475a224b6be662d7c698cd705157064f
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>
arch/arm/mach-omap2/vc.c
arch/arm/mach-omap2/voltage.c
arch/arm/mach-omap2/vp.c
arch/arm/mach-omap2/vp.h
arch/arm/mach-omap2/vp3xxx_data.c
arch/arm/mach-omap2/vp44xx_data.c