OMAP2+: voltage: split voltage controller (VC) code into dedicated layer
authorKevin Hilman <khilman@ti.com>
Mon, 21 Mar 2011 21:08:55 +0000 (14:08 -0700)
committerKevin Hilman <khilman@ti.com>
Thu, 15 Sep 2011 18:39:10 +0000 (11:39 -0700)
commitccd5ca7787df8f1bd267b90f03a09c31c160ffe2
tree593de0267c8554188d7d5425e83836ba7d84bb65
parente69c22b1459068f15e56e48b4b6953cc3f566c79
OMAP2+: voltage: split voltage controller (VC) code into dedicated layer

As part of the voltage layer cleanup, split out VC specific code into
a dedicated VC layer.  This patch primarily just moves VC code from
voltage.c into vc.c, and adds prototypes to vc.h.

No functional changes.

For readability, each function was given a local 'vc' pointer:

    struct omap_vc_instance_data *vc = voltdm->vdd->vc_data;

and a global replace of s/vdd->vc_data/vc/ was done.

Also vc_init was renamed to vc_init_channel to reflect that this is
per-VC channel initializtion.

Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/Makefile
arch/arm/mach-omap2/vc.c [new file with mode: 0644]
arch/arm/mach-omap2/vc.h
arch/arm/mach-omap2/voltage.c