diff options
author | Mark Stadler <mastadler@nvidia.com> | 2012-03-01 16:39:09 -0800 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-03-08 14:45:10 -0800 |
commit | c44000ccf6797d062ebef7ec610b7189a1126018 (patch) | |
tree | edba0b06566dc977362bcaf8d2e493596688fd95 /include/linux | |
parent | de0930975b004476815832e496d967a77fe4d337 (diff) |
regulator: provide missing regulator_ stubs
Change-Id: I8a5329284008c03705273dfa49042fc0e07b4b3d
Signed-off-by: Mark Stadler <mastadler@nvidia.com>
Reviewed-on: http://git-master/r/87068
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/regulator/consumer.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 24aae2104c08..8699df6fbb71 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h @@ -2,6 +2,7 @@ * consumer.h -- SoC Regulator consumer support. * * Copyright (C) 2007, 2008 Wolfson Microelectronics PLC. + * Copyright (C) 2012 NVIDIA Corporation * * Author: Liam Girdwood <lrg@slimlogic.co.uk> * @@ -205,6 +206,12 @@ static inline struct regulator *__must_check regulator_get(struct device *dev, */ return NULL; } +static inline struct regulator *__must_check regulator_get_exclusive( + struct device *dev, const char *id) +{ + /* See comment for regulator_get() stub, above */ + return NULL; +} static inline void regulator_put(struct regulator *regulator) { } @@ -219,6 +226,11 @@ static inline int regulator_disable(struct regulator *regulator) return 0; } +static inline int regulator_force_disable(struct regulator *regulator) +{ + return 0; +} + static inline int regulator_is_enabled(struct regulator *regulator) { return 1; @@ -248,17 +260,45 @@ static inline void regulator_bulk_free(int num_consumers, { } +static inline int regulator_count_voltages(struct regulator *regulator) +{ + return 0; +} + +static inline int regulator_list_voltage(struct regulator *regulator, + unsigned selector) +{ + return 0; +} + +static inline int regulator_is_supported_voltage(struct regulator *regulator, + int min_uV, int max_uV) +{ + return 0; +} + static inline int regulator_set_voltage(struct regulator *regulator, int min_uV, int max_uV) { return 0; } +static inline int regulator_set_voltage_time(struct regulator *regulator, + int old_uV, int new_uV) +{ + return 0; +} + static inline int regulator_get_voltage(struct regulator *regulator) { return 0; } +static inline int regulator_sync_voltage(struct regulator *regulator) +{ + return 0; +} + static inline int regulator_set_current_limit(struct regulator *regulator, int min_uA, int max_uA) { |