aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/regulator
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2019-01-09 18:44:00 +0100
committerMark Brown <broonie@kernel.org>2019-01-09 18:36:44 +0000
commit03c87b95ac04c2a34045641b25dded6e3e889556 (patch)
tree14138f442dd105fb14b0cbf6eb812e0540f25d91 /include/linux/regulator
parentregulator: axp20x: check rdev is null before dereferencing it (diff)
downloadwireguard-linux-03c87b95ac04c2a34045641b25dded6e3e889556.tar.xz
wireguard-linux-03c87b95ac04c2a34045641b25dded6e3e889556.zip
regulator: provide rdev_get_regmap()
Provide a helper allowing to access regulator's regmap. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regulator')
-rw-r--r--include/linux/regulator/driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h
index 389bcaf7900f..795b38a06b6c 100644
--- a/include/linux/regulator/driver.h
+++ b/include/linux/regulator/driver.h
@@ -503,6 +503,7 @@ int regulator_notifier_call_chain(struct regulator_dev *rdev,
void *rdev_get_drvdata(struct regulator_dev *rdev);
struct device *rdev_get_dev(struct regulator_dev *rdev);
+struct regmap *rdev_get_regmap(struct regulator_dev *rdev);
int rdev_get_id(struct regulator_dev *rdev);
int regulator_mode_to_status(unsigned int);