Lines Matching defs:regulator
13 #include <linux/platform_data/regulator-haptic.h>
15 #include <linux/regulator/consumer.h>
23 struct regulator *regulator;
42 error = on ? regulator_enable(haptic->regulator) :
43 regulator_disable(haptic->regulator);
46 "failed to switch regulator %s: %d\n",
67 error = regulator_set_voltage(haptic->regulator,
71 dev_err(haptic->dev, "cannot set regulator voltage to %d: %d\n",
171 haptic->regulator = devm_regulator_get_exclusive(&pdev->dev, "haptic");
172 if (IS_ERR(haptic->regulator)) {
173 dev_err(&pdev->dev, "failed to get regulator\n");
174 return PTR_ERR(haptic->regulator);
182 haptic->input_dev->name = "regulator-haptic";
246 { .compatible = "regulator-haptic" },
254 .name = "regulator-haptic",