History

regulator: extract voltage balancing code to the separate function

Move the coupled regulators voltage balancing code to the separate function and allow to call it from the custom regulator couplers.

Marek Szyprowski committed 6 years ago

Commit 752db831 parent 8f3d9f32 files · +37 −20Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/regulator/coupler.h+8−0
@@ -62,6 +62,8 @@ int regulator_get_voltage_rdev(struct regulator_dev *rdev); · 61 unmodified lines
6262 int regulator_set_voltage_rdev(struct regulator_dev *rdev,
6363 int min_uV, int max_uV,
6464 suspend_state_t state);
65+int regulator_do_balance_voltage(struct regulator_dev *rdev,
66+ suspend_state_t state, bool skip_coupled);
6567 #else
6668 static inline int regulator_coupler_register(struct regulator_coupler *coupler)
6769 {
@@ -92,6 +94,12 @@ static inline int regulator_set_voltage_rdev(struct regulator_dev *rdev, · 24 unmodified lines
9294 {
9395 return -EINVAL;
9496 }
97+static inline int regulator_do_balance_voltage(struct regulator_dev *rdev,
98+ suspend_state_t state,
99+ bool skip_coupled)
100+{
101+ return -EINVAL;
102+}
95103 #endif
96104
97105 #endif