UPSTREAM: regulator: pwm: Add support to have multiple instance of pwm regulator
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 8 Mar 2016 10:53:22 +0000 (16:23 +0530)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 6 Mar 2017 10:28:40 +0000 (18:28 +0800)
commitbfb79e4fbed5347bc7db2e6775c11e22c4a9b74e
tree90a5ac63cbcd1c695399d6752fbbd2e2d5d856bf
parent4df4795120da3cf2ddb2388faf1e0d247e862bb5
UPSTREAM: regulator: pwm: Add support to have multiple instance of pwm regulator

Some of platforms like Nvidia's Tegra210 Jetson-TX1 platform has
multiple PMW based regulators. Add support to have multiple instances
of the driver by not changing any global data of pwm regulator and
if required, making instance specific copy and then making changes.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit f907a0a9498db29fb7c91b798d7af70add7dd86e)

Change-Id: Iafd9b033cd67a76a430024840f70e275a6d22e0d
Signed-off-by: David Wu <david.wu@rock-chips.com>
drivers/regulator/pwm-regulator.c