regulator: provide missing regulator_ stubs
Mark Stadler [Fri, 2 Mar 2012 00:39:09 +0000 (16:39 -0800)]
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>

include/linux/regulator/consumer.h

index 24aae21..8699df6 100644 (file)
@@ -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)
 {