mfd: twl-core: Collect global variables behind one private structure (global)
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 16 Jan 2013 13:53:57 +0000 (14:53 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 13 Feb 2013 23:22:51 +0000 (00:22 +0100)
commit80a97ccd33be9c79018d3d4983eefa3e6d6bfb6d
tree7090232bab288b42d93edddd89f5bfbcb96cf441
parent6382a0614144901af1cbbfdf9b9a618f5dfb8548
mfd: twl-core: Collect global variables behind one private structure (global)

Gather the global variables under a single structure and allocate it with
devm_kzalloc(). It is easier to see them and if in the future we try to add
support for multiple instance of twl in the system it is going to be much
simpler.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl-core.c