Lines Matching defs:coupler
26 #include <linux/regulator/coupler.h>
4163 struct regulator_coupler *coupler = c_desc->coupler;
4179 if (coupler && coupler->balance_voltage)
4180 return coupler->balance_voltage(coupler, rdev, state);
5402 int regulator_coupler_register(struct regulator_coupler *coupler)
5405 list_add_tail(&coupler->list, ®ulator_coupler_list);
5414 struct regulator_coupler *coupler;
5419 * coupler is registered first, hence it will be attached at last
5422 list_for_each_entry_reverse(coupler, ®ulator_coupler_list, list) {
5423 err = coupler->attach_regulator(coupler, rdev);
5425 if (!coupler->balance_voltage &&
5429 return coupler;
5444 if (coupler->detach_regulator)
5445 coupler->detach_regulator(coupler, rdev);
5455 struct regulator_coupler *coupler = rdev->coupling_desc.coupler;
5471 if (c_rdev->coupling_desc.coupler != coupler) {
5472 rdev_err(rdev, "coupler mismatch with %s\n",
5486 struct regulator_coupler *coupler = rdev->coupling_desc.coupler;
5522 if (coupler && coupler->detach_regulator) {
5523 err = coupler->detach_regulator(coupler, rdev);
5525 rdev_err(rdev, "failed to detach from coupler: %pe\n",
5565 rdev->coupling_desc.coupler = regulator_find_coupler(rdev);
5568 if (IS_ERR(rdev->coupling_desc.coupler)) {
5569 err = PTR_ERR(rdev->coupling_desc.coupler);
5570 rdev_err(rdev, "failed to get coupler: %pe\n", ERR_PTR(err));
5577 static int generic_coupler_attach(struct regulator_coupler *coupler,