regulator: pfuze100-regulator: Remove global variable
authorFabio Estevam <fabio.estevam@nxp.com>
Sun, 5 Jun 2016 22:17:38 +0000 (19:17 -0300)
committerMark Brown <broonie@kernel.org>
Mon, 6 Jun 2016 18:13:48 +0000 (19:13 +0100)
commit124256548f4e7d3ff81a37a64acb439778bcdbfb
tree5d5cde84526015715a74de792c5557e0316a6bcc
parent1a695a905c18548062509178b98bc91e67510864
regulator: pfuze100-regulator: Remove global variable

We should better not use a global 'struct pfuze_regulator' variable,
as this could cause problems if multiple regulator chips are used.

Place it inside the private struct instead.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pfuze100-regulator.c