diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2014-01-22 19:06:48 +0530 |
---|---|---|
committer | Laxman Dewangan <ldewangan@nvidia.com> | 2014-01-23 01:04:35 -0800 |
commit | cb69b4a24a78a1fe5ab565efdf83db946240c54e (patch) | |
tree | ad02394d62283f9dd289c7dccd824e4a4b71bcb5 /drivers/regulator | |
parent | c27811ed518e194e651fe184a68d205526f69604 (diff) |
regulator: core: add support to ignore current constraint config on init
Add provision to ignore the current constraint conifguration during
regulator registration. This will provide opion to avoid configuration
of maximum current when it is not require like from charger regulators.
Change-Id: I7ec70db2c0660fbe8e57892d5474bafbb8c022ef
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/358766
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 4c5d890bbbee..bc57975d97e0 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -1071,6 +1071,8 @@ static int machine_constraints_current(struct regulator_dev *rdev, struct regulator_ops *ops = rdev->desc->ops; int ret; + if (constraints->ignore_current_constraint_init) + return 0; if (!constraints->min_uA && !constraints->max_uA) return 0; |