diff options
| author | Bjorn Andersson <bjorn.andersson@sonymobile.com> | 2015-03-24 21:56:05 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2015-04-01 16:19:44 -0400 |
| commit | 6261b06de565baafa590e58a531a1a5522cea0b6 (patch) | |
| tree | 4bc6989348daaf4fc2c92c4f1c9976796975f2f7 /include/linux/regulator | |
| parent | 5c9e719691eab8c5de8b1b68fc3da9f7c4470c38 (diff) | |
regulator: Defer lookup of supply to regulator_get
Instead of resolving regulator supplies during registration move this to
the time of a consumer retrieving a handle. The benefit is that it's
possible for one driver to register regulators with internal
dependencies out of order.
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regulator')
| -rw-r--r-- | include/linux/regulator/driver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index d4ad5b5a02bb..6d9fcd0c33d6 100644 --- a/include/linux/regulator/driver.h +++ b/include/linux/regulator/driver.h | |||
| @@ -367,6 +367,7 @@ struct regulator_dev { | |||
| 367 | struct device dev; | 367 | struct device dev; |
| 368 | struct regulation_constraints *constraints; | 368 | struct regulation_constraints *constraints; |
| 369 | struct regulator *supply; /* for tree */ | 369 | struct regulator *supply; /* for tree */ |
| 370 | const char *supply_name; | ||
| 370 | struct regmap *regmap; | 371 | struct regmap *regmap; |
| 371 | 372 | ||
| 372 | struct delayed_work disable_work; | 373 | struct delayed_work disable_work; |
