diff options
author | Keerthy <j-keerthy@ti.com> | 2017-06-13 09:53:45 +0530 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2017-07-19 19:13:59 +0900 |
commit | 06bdf6003b6951154bf1d0876fc7174c53df766c (patch) | |
tree | 5243c06c3a79b76505ca26469d91d1490d06490c /include | |
parent | 343749c42554b058e53086aefe21d47b383326d5 (diff) |
regulator: Change get_enable return type to integer from bool
Change get_enable return type to int so errors can be returned.
Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/power/regulator.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/power/regulator.h b/include/power/regulator.h index 1a8e5753d78..2bbc1e51b34 100644 --- a/include/power/regulator.h +++ b/include/power/regulator.h @@ -211,9 +211,9 @@ struct dm_regulator_ops { * @dev - regulator device * Sets: * @enable - set true - enable or false - disable - * @return true/false for get; or 0 / -errno for set. + * @return true/false for get or -errno if fail; 0 / -errno for set. */ - bool (*get_enable)(struct udevice *dev); + int (*get_enable)(struct udevice *dev); int (*set_enable)(struct udevice *dev, bool enable); /** @@ -291,9 +291,9 @@ int regulator_set_current(struct udevice *dev, int uA); * regulator_get_enable: get regulator device enable state. * * @dev - pointer to the regulator device - * @return - true/false of enable state + * @return - true/false of enable state or -errno val if fails */ -bool regulator_get_enable(struct udevice *dev); +int regulator_get_enable(struct udevice *dev); /** * regulator_set_enable: set regulator enable state |