0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef __REGULATOR_FIXED_H
0014 #define __REGULATOR_FIXED_H
0015
0016 struct regulator_init_data;
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034 struct fixed_voltage_config {
0035 const char *supply_name;
0036 const char *input_supply;
0037 int microvolts;
0038 unsigned startup_delay;
0039 unsigned int off_on_delay;
0040 unsigned enabled_at_boot:1;
0041 struct regulator_init_data *init_data;
0042 };
0043
0044 struct regulator_consumer_supply;
0045
0046 #if IS_ENABLED(CONFIG_REGULATOR)
0047 struct platform_device *regulator_register_always_on(int id, const char *name,
0048 struct regulator_consumer_supply *supplies, int num_supplies, int uv);
0049 #else
0050 static inline struct platform_device *regulator_register_always_on(int id, const char *name,
0051 struct regulator_consumer_supply *supplies, int num_supplies, int uv)
0052 {
0053 return NULL;
0054 }
0055 #endif
0056
0057 #define regulator_register_fixed(id, s, ns) regulator_register_always_on(id, \
0058 "fixed-dummy", s, ns, 0)
0059
0060 #endif