1STRUCT REGULATOR_OPS(9)          API reference         STRUCT REGULATOR_OPS(9)
2
3
4

NAME

6       struct_regulator_ops - regulator operations.
7

SYNOPSIS

9       struct regulator_ops {
10         int (* list_voltage) (struct regulator_dev *, unsigned selector);
11         int (* set_voltage) (struct regulator_dev *, int min_uV, int max_uV);
12         int (* get_voltage) (struct regulator_dev *);
13         int (* set_current_limit) (struct regulator_dev *,int min_uA, int max_uA);
14         int (* get_current_limit) (struct regulator_dev *);
15         int (* enable) (struct regulator_dev *);
16         int (* disable) (struct regulator_dev *);
17         int (* is_enabled) (struct regulator_dev *);
18         int (* set_mode) (struct regulator_dev *, unsigned int mode);
19         unsigned int (* get_mode) (struct regulator_dev *);
20         int (* get_status) (struct regulator_dev *);
21         unsigned int (* get_optimum_mode) (struct regulator_dev *, int input_uV,int output_uV, int load_uA);
22         int (* set_suspend_voltage) (struct regulator_dev *, int uV);
23         int (* set_suspend_enable) (struct regulator_dev *);
24         int (* set_suspend_disable) (struct regulator_dev *);
25         int (* set_suspend_mode) (struct regulator_dev *, unsigned int mode);
26       };
27

MEMBERS

29       list_voltage
30           Return one of the supported voltages, in microvolts; zero if the
31           selector indicates a voltage that is unusable on this system; or
32           negative errno. Selectors range from zero to one less than
33           regulator_desc.n_voltages. Voltages may be reported in any order.
34
35       set_voltage
36           Set the voltage for the regulator within the range specified. The
37           driver should select the voltage closest to min_uV.
38
39       get_voltage
40           Return the currently configured voltage for the regulator.
41
42       set_current_limit
43           Configure a limit for a current-limited regulator.
44
45       get_current_limit
46           Get the configured limit for a current-limited regulator.
47
48       enable
49           Configure the regulator as enabled.
50
51       disable
52           Configure the regulator as disabled.
53
54       is_enabled
55           Return 1 if the regulator is enabled, 0 if not. May also return
56           negative errno.
57
58       set_mode
59           Set the configured operating mode for the regulator.
60
61       get_mode
62           Get the configured operating mode for the regulator.
63
64       get_status
65           Return actual (not as-configured) status of regulator, as a
66           REGULATOR_STATUS value (or negative errno)
67
68       get_optimum_mode
69           Get the most efficient operating mode for the regulator when
70           running with the specified parameters.
71
72       set_suspend_voltage
73           Set the voltage for the regulator when the system is suspended.
74
75       set_suspend_enable
76           Mark the regulator as enabled when the system is suspended.
77
78       set_suspend_disable
79           Mark the regulator as disabled when the system is suspended.
80
81       set_suspend_mode
82           Set the operating mode for the regulator when the system is
83           suspended.
84

DESCRIPTION

86       This struct describes regulator operations which can be implemented by
87       regulator chip drivers.
88

AUTHORS

90       Liam Girdwood <lrg@slimlogic.co.uk>
91           Author.
92
93       Mark Brown <broonie@opensource.wolfsonmicro.com>
94       Wolfson Microelectronics,
95
96
97           Author.
98
100Kernel Hackers Manual 2.6.         June 2019           STRUCT REGULATOR_OPS(9)
Impressum