]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/linux/regulator/consumer.h
regulator: Fix return value of _set_load() stub
[mirror_ubuntu-bionic-kernel.git] / include / linux / regulator / consumer.h
index df176d7c2b87c00356a11b383a61185e7f3e47ae..f3f76051e8b008346a0e7acd4b6512d7ecef85f3 100644 (file)
@@ -80,6 +80,7 @@ struct regmap;
  * These modes can be OR'ed together to make up a mask of valid register modes.
  */
 
+#define REGULATOR_MODE_INVALID                 0x0
 #define REGULATOR_MODE_FAST                    0x1
 #define REGULATOR_MODE_NORMAL                  0x2
 #define REGULATOR_MODE_IDLE                    0x4
@@ -507,7 +508,7 @@ static inline int regulator_get_error_flags(struct regulator *regulator,
 
 static inline int regulator_set_load(struct regulator *regulator, int load_uA)
 {
-       return REGULATOR_MODE_NORMAL;
+       return 0;
 }
 
 static inline int regulator_allow_bypass(struct regulator *regulator,