|
4 | 4 |
|
5 | 5 | #ifndef CONFIG_REGULATOR |
6 | 6 |
|
7 | | -void rust_helper_regulator_put(struct regulator *regulator) |
| 7 | +__rust_helper void rust_helper_regulator_put(struct regulator *regulator) |
8 | 8 | { |
9 | 9 | regulator_put(regulator); |
10 | 10 | } |
11 | 11 |
|
12 | | -int rust_helper_regulator_set_voltage(struct regulator *regulator, int min_uV, |
13 | | - int max_uV) |
| 12 | +__rust_helper int rust_helper_regulator_set_voltage(struct regulator *regulator, |
| 13 | + int min_uV, int max_uV) |
14 | 14 | { |
15 | 15 | return regulator_set_voltage(regulator, min_uV, max_uV); |
16 | 16 | } |
17 | 17 |
|
18 | | -int rust_helper_regulator_get_voltage(struct regulator *regulator) |
| 18 | +__rust_helper int rust_helper_regulator_get_voltage(struct regulator *regulator) |
19 | 19 | { |
20 | 20 | return regulator_get_voltage(regulator); |
21 | 21 | } |
22 | 22 |
|
23 | | -struct regulator *rust_helper_regulator_get(struct device *dev, const char *id) |
| 23 | +__rust_helper struct regulator *rust_helper_regulator_get(struct device *dev, |
| 24 | + const char *id) |
24 | 25 | { |
25 | 26 | return regulator_get(dev, id); |
26 | 27 | } |
27 | 28 |
|
28 | | -int rust_helper_regulator_enable(struct regulator *regulator) |
| 29 | +__rust_helper int rust_helper_regulator_enable(struct regulator *regulator) |
29 | 30 | { |
30 | 31 | return regulator_enable(regulator); |
31 | 32 | } |
32 | 33 |
|
33 | | -int rust_helper_regulator_disable(struct regulator *regulator) |
| 34 | +__rust_helper int rust_helper_regulator_disable(struct regulator *regulator) |
34 | 35 | { |
35 | 36 | return regulator_disable(regulator); |
36 | 37 | } |
37 | 38 |
|
38 | | -int rust_helper_regulator_is_enabled(struct regulator *regulator) |
| 39 | +__rust_helper int rust_helper_regulator_is_enabled(struct regulator *regulator) |
39 | 40 | { |
40 | 41 | return regulator_is_enabled(regulator); |
41 | 42 | } |
42 | 43 |
|
43 | | -int rust_helper_devm_regulator_get_enable(struct device *dev, const char *id) |
| 44 | +__rust_helper int rust_helper_devm_regulator_get_enable(struct device *dev, |
| 45 | + const char *id) |
44 | 46 | { |
45 | 47 | return devm_regulator_get_enable(dev, id); |
46 | 48 | } |
47 | 49 |
|
48 | | -int rust_helper_devm_regulator_get_enable_optional(struct device *dev, const char *id) |
| 50 | +__rust_helper int |
| 51 | +rust_helper_devm_regulator_get_enable_optional(struct device *dev, |
| 52 | + const char *id) |
49 | 53 | { |
50 | 54 | return devm_regulator_get_enable_optional(dev, id); |
51 | 55 | } |
|
0 commit comments