/drivers/regulator/ |
D | Makefile | 13 obj-$(CONFIG_REGULATOR_AAT2870) += aat2870-regulator.o 17 obj-$(CONFIG_REGULATOR_ANATOP) += anatop-regulator.o 19 obj-$(CONFIG_REGULATOR_AS3711) += as3711-regulator.o 21 obj-$(CONFIG_REGULATOR_DA9052) += da9052-regulator.o 22 obj-$(CONFIG_REGULATOR_DA9055) += da9055-regulator.o 26 obj-$(CONFIG_REGULATOR_GPIO) += gpio-regulator.o 27 obj-$(CONFIG_REGULATOR_ISL6271A) += isl6271a-regulator.o 37 obj-$(CONFIG_REGULATOR_MAX8907) += max8907-regulator.o 38 obj-$(CONFIG_REGULATOR_MAX8925) += max8925-regulator.o 40 obj-$(CONFIG_REGULATOR_MAX8973) += max8973-regulator.o [all …]
|
D | da9055-regulator.c | 85 struct da9055_regulator *regulator = rdev_get_drvdata(rdev); in da9055_buck_get_mode() local 86 struct da9055_regulator_info *info = regulator->info; in da9055_buck_get_mode() 89 ret = da9055_reg_read(regulator->da9055, info->mode.reg); in da9055_buck_get_mode() 111 struct da9055_regulator *regulator = rdev_get_drvdata(rdev); in da9055_buck_set_mode() local 112 struct da9055_regulator_info *info = regulator->info; in da9055_buck_set_mode() 127 return da9055_reg_update(regulator->da9055, info->mode.reg, in da9055_buck_set_mode() 133 struct da9055_regulator *regulator = rdev_get_drvdata(rdev); in da9055_ldo_get_mode() local 134 struct da9055_regulator_info *info = regulator->info; in da9055_ldo_get_mode() 137 ret = da9055_reg_read(regulator->da9055, info->volt.reg_b); in da9055_ldo_get_mode() 149 struct da9055_regulator *regulator = rdev_get_drvdata(rdev); in da9055_ldo_set_mode() local [all …]
|
D | core.c | 69 struct regulator_dev *regulator; member 90 struct regulator { struct 113 static struct regulator *create_regulator(struct regulator_dev *rdev, argument 200 struct regulator *regulator; in regulator_check_consumers() local 202 list_for_each_entry(regulator, &rdev->consumer_list, list) { in regulator_check_consumers() 207 if (!regulator->min_uV && !regulator->max_uV) in regulator_check_consumers() 210 if (*max_uV > regulator->max_uV) in regulator_check_consumers() 211 *max_uV = regulator->max_uV; in regulator_check_consumers() 212 if (*min_uV < regulator->min_uV) in regulator_check_consumers() 213 *min_uV = regulator->min_uV; in regulator_check_consumers() [all …]
|
D | da9052-regulator.c | 92 struct da9052_regulator *regulator = rdev_get_drvdata(rdev); in da9052_dcdc_get_current_limit() local 96 ret = da9052_reg_read(regulator->da9052, DA9052_BUCKA_REG + offset/2); in da9052_dcdc_get_current_limit() 109 if (regulator->da9052->chip_id == DA9052) in da9052_dcdc_get_current_limit() 120 struct da9052_regulator *regulator = rdev_get_drvdata(rdev); in da9052_dcdc_set_current_limit() local 126 if (regulator->da9052->chip_id == DA9052) in da9052_dcdc_set_current_limit() 146 return da9052_reg_update(regulator->da9052, in da9052_dcdc_set_current_limit() 151 return da9052_reg_update(regulator->da9052, in da9052_dcdc_set_current_limit() 160 struct da9052_regulator *regulator = rdev_get_drvdata(rdev); in da9052_list_voltage() local 161 struct da9052_regulator_info *info = regulator->info; in da9052_list_voltage() 165 if ((id == DA9052_ID_BUCK4) && (regulator->da9052->chip_id == DA9052) in da9052_list_voltage() [all …]
|
D | Kconfig | 12 The intention is to allow systems to dynamically control regulator 32 bool "Provide a dummy regulator if regulator lookups fail" 34 If this option is enabled then when a regulator lookup fails 36 constraints the regulator core will provide an always 37 enabled dummy regulator, allowing consumer drivers to continue. 42 tristate "Fixed voltage regulator support" 49 tristate "Virtual regulator consumer support" 52 current regulator API which provides sysfs controls for 59 tristate "Userspace regulator consumer support" 68 tristate "GPIO regulator support" [all …]
|
D | virtual.c | 23 struct regulator *regulator; member 41 ret = regulator_set_voltage(data->regulator, in update_voltage_constraints() 52 ret = regulator_enable(data->regulator); in update_voltage_constraints() 62 ret = regulator_disable(data->regulator); in update_voltage_constraints() 80 ret = regulator_set_current_limit(data->regulator, in update_current_limit_constraints() 92 ret = regulator_enable(data->regulator); in update_current_limit_constraints() 102 ret = regulator_disable(data->regulator); in update_current_limit_constraints() 259 ret = regulator_set_mode(data->regulator, mode); in set_mode() 301 drvdata->regulator = devm_regulator_get(&pdev->dev, reg_id); in regulator_virtual_probe() 302 if (IS_ERR(drvdata->regulator)) { in regulator_virtual_probe() [all …]
|
D | wm831x-dcdc.c | 57 struct regulator_dev *regulator; member 186 regulator_notifier_call_chain(dcdc->regulator, in wm831x_dcdc_uv_irq() 197 regulator_notifier_call_chain(dcdc->regulator, in wm831x_dcdc_oc_irq() 524 dcdc->regulator = regulator_register(&dcdc->desc, &config); in wm831x_buckv_probe() 525 if (IS_ERR(dcdc->regulator)) { in wm831x_buckv_probe() 526 ret = PTR_ERR(dcdc->regulator); in wm831x_buckv_probe() 558 regulator_unregister(dcdc->regulator); in wm831x_buckv_probe() 576 regulator_unregister(dcdc->regulator); in wm831x_buckv_remove() 686 dcdc->regulator = regulator_register(&dcdc->desc, &config); in wm831x_buckp_probe() 687 if (IS_ERR(dcdc->regulator)) { in wm831x_buckp_probe() [all …]
|
D | wm831x-ldo.c | 43 struct regulator_dev *regulator; member 54 regulator_notifier_call_chain(ldo->regulator, in wm831x_ldo_uv_irq() 309 ldo->regulator = regulator_register(&ldo->desc, &config); in wm831x_gp_ldo_probe() 310 if (IS_ERR(ldo->regulator)) { in wm831x_gp_ldo_probe() 311 ret = PTR_ERR(ldo->regulator); in wm831x_gp_ldo_probe() 332 regulator_unregister(ldo->regulator); in wm831x_gp_ldo_probe() 345 regulator_unregister(ldo->regulator); in wm831x_gp_ldo_remove() 566 ldo->regulator = regulator_register(&ldo->desc, &config); in wm831x_aldo_probe() 567 if (IS_ERR(ldo->regulator)) { in wm831x_aldo_probe() 568 ret = PTR_ERR(ldo->regulator); in wm831x_aldo_probe() [all …]
|
D | wm831x-isink.c | 35 struct regulator_dev *regulator; member 143 regulator_notifier_call_chain(isink->regulator, in wm831x_isink_irq() 197 isink->regulator = regulator_register(&isink->desc, &config); in wm831x_isink_probe() 198 if (IS_ERR(isink->regulator)) { in wm831x_isink_probe() 199 ret = PTR_ERR(isink->regulator); in wm831x_isink_probe() 219 regulator_unregister(isink->regulator); in wm831x_isink_probe() 232 regulator_unregister(isink->regulator); in wm831x_isink_remove()
|
D | wm8994-regulator.c | 30 struct regulator_dev *regulator; member 168 ldo->regulator = regulator_register(&wm8994_ldo_desc[id], &config); in wm8994_ldo_probe() 169 if (IS_ERR(ldo->regulator)) { in wm8994_ldo_probe() 170 ret = PTR_ERR(ldo->regulator); in wm8994_ldo_probe() 190 regulator_unregister(ldo->regulator); in wm8994_ldo_remove()
|
D | max8649.c | 52 struct regulator_dev *regulator; member 233 config.init_data = pdata->regulator; in max8649_regulator_probe() 237 info->regulator = regulator_register(&dcdc_desc, &config); in max8649_regulator_probe() 238 if (IS_ERR(info->regulator)) { in max8649_regulator_probe() 241 return PTR_ERR(info->regulator); in max8649_regulator_probe() 252 regulator_unregister(info->regulator); in max8649_regulator_remove()
|
D | arizona-micsupp.c | 34 struct regulator_dev *regulator; member 228 micsupp->regulator = regulator_register(&arizona_micsupp, &config); in arizona_micsupp_probe() 229 if (IS_ERR(micsupp->regulator)) { in arizona_micsupp_probe() 230 ret = PTR_ERR(micsupp->regulator); in arizona_micsupp_probe() 245 regulator_unregister(micsupp->regulator); in arizona_micsupp_remove()
|
D | tps6105x-regulator.c | 149 tps6105x->regulator = regulator_register(&tps6105x_regulator_desc, in tps6105x_regulator_probe() 151 if (IS_ERR(tps6105x->regulator)) { in tps6105x_regulator_probe() 152 ret = PTR_ERR(tps6105x->regulator); in tps6105x_regulator_probe() 165 regulator_unregister(tps6105x->regulator); in tps6105x_regulator_remove()
|
D | arizona-ldo1.c | 30 struct regulator_dev *regulator; member 229 ldo1->regulator = regulator_register(desc, &config); in arizona_ldo1_probe() 230 if (IS_ERR(ldo1->regulator)) { in arizona_ldo1_probe() 231 ret = PTR_ERR(ldo1->regulator); in arizona_ldo1_probe() 246 regulator_unregister(ldo1->regulator); in arizona_ldo1_remove()
|
D | fan53555.c | 68 struct regulator_init_data *regulator; member 241 if (!pdata || !pdata->regulator) { in fan53555_regulator_probe() 258 di->regulator = pdata->regulator; in fan53555_regulator_probe() 284 config.init_data = di->regulator; in fan53555_regulator_probe()
|
D | 88pm8607.c | 26 struct regulator_dev *regulator; member 394 info->regulator = regulator_register(&info->desc, &config); in pm8607_regulator_probe() 395 if (IS_ERR(info->regulator)) { in pm8607_regulator_probe() 398 return PTR_ERR(info->regulator); in pm8607_regulator_probe() 410 regulator_unregister(info->regulator); in pm8607_regulator_remove()
|
/drivers/input/misc/ |
D | max8997_haptic.c | 51 struct regulator *regulator; member 186 regulator_enable(chip->regulator); in max8997_haptic_enable() 205 regulator_disable(chip->regulator); in max8997_haptic_disable() 307 chip->regulator = regulator_get(&pdev->dev, "inmotor"); in max8997_haptic_probe() 308 if (IS_ERR(chip->regulator)) { in max8997_haptic_probe() 309 error = PTR_ERR(chip->regulator); in max8997_haptic_probe() 346 regulator_put(chip->regulator); in max8997_haptic_probe() 362 regulator_put(chip->regulator); in max8997_haptic_remove()
|
/drivers/input/touchscreen/ |
D | bu21013_ts.c | 156 struct regulator *regulator; member 537 bu21013_data->regulator = regulator_get(&client->dev, "avdd"); in bu21013_probe() 538 if (IS_ERR(bu21013_data->regulator)) { in bu21013_probe() 540 error = PTR_ERR(bu21013_data->regulator); in bu21013_probe() 544 error = regulator_enable(bu21013_data->regulator); in bu21013_probe() 609 regulator_disable(bu21013_data->regulator); in bu21013_probe() 611 regulator_put(bu21013_data->regulator); in bu21013_probe() 635 regulator_disable(bu21013_data->regulator); in bu21013_remove() 636 regulator_put(bu21013_data->regulator); in bu21013_remove() 664 regulator_disable(bu21013_data->regulator); in bu21013_suspend() [all …]
|
/drivers/leds/ |
D | leds-lm3530.c | 111 struct regulator *regulator; member 197 ret = regulator_enable(drvdata->regulator); in lm3530_led_enable() 214 ret = regulator_disable(drvdata->regulator); in lm3530_led_disable() 442 drvdata->regulator = devm_regulator_get(&client->dev, "vin"); in lm3530_probe() 443 if (IS_ERR(drvdata->regulator)) { in lm3530_probe() 445 err = PTR_ERR(drvdata->regulator); in lm3530_probe() 446 drvdata->regulator = NULL; in lm3530_probe()
|
D | leds-regulator.c | 33 struct regulator *vcc; 36 static inline int led_regulator_get_max_brightness(struct regulator *supply) in led_regulator_get_max_brightness() 55 static int led_regulator_get_voltage(struct regulator *supply, in led_regulator_get_voltage() 147 struct regulator *vcc; in regulator_led_probe()
|
/drivers/staging/ste_rmi4/ |
D | synaptics_i2c_rmi4.c | 185 struct regulator *regulator; member 920 rmi4_data->regulator = regulator_get(&client->dev, "vdd"); in synaptics_rmi4_probe() 921 if (IS_ERR(rmi4_data->regulator)) { in synaptics_rmi4_probe() 924 retval = PTR_ERR(rmi4_data->regulator); in synaptics_rmi4_probe() 927 retval = regulator_enable(rmi4_data->regulator); in synaptics_rmi4_probe() 1009 regulator_disable(rmi4_data->regulator); in synaptics_rmi4_probe() 1011 regulator_put(rmi4_data->regulator); in synaptics_rmi4_probe() 1035 regulator_disable(rmi4_data->regulator); in synaptics_rmi4_remove() 1036 regulator_put(rmi4_data->regulator); in synaptics_rmi4_remove() 1073 regulator_disable(rmi4_data->regulator); in synaptics_rmi4_suspend() [all …]
|
/drivers/usb/phy/ |
D | phy-twl6030-usb.c | 97 struct regulator *usb3v3; 108 const char *regulator; member 165 twl->usb3v3 = regulator_get(twl->dev, twl->regulator); in twl6030_usb_ldo_init() 348 twl->regulator = "usb"; in twl6030_usb_probe() 351 twl->regulator = "ldousb"; in twl6030_usb_probe() 353 twl->regulator = "vusb"; in twl6030_usb_probe()
|
/drivers/media/platform/omap3isp/ |
D | ispcsiphy.h | 33 struct regulator; 40 struct regulator *vdd;
|
/drivers/video/omap2/dss/ |
D | core.c | 46 struct regulator *vdds_dsi_reg; 47 struct regulator *vdds_sdi_reg; 84 struct regulator *dss_get_vdds_dsi(void) in dss_get_vdds_dsi() 86 struct regulator *reg; in dss_get_vdds_dsi() 98 struct regulator *dss_get_vdds_sdi(void) in dss_get_vdds_sdi() 100 struct regulator *reg; in dss_get_vdds_sdi()
|
/drivers/mtd/onenand/ |
D | omap2.c | 63 struct regulator *regulator; member 614 ret = regulator_enable(c->regulator); in omap2_onenand_enable() 626 ret = regulator_disable(c->regulator); in omap2_onenand_disable() 755 c->regulator = regulator_get(&pdev->dev, "vonenand"); in omap2_onenand_probe() 756 if (IS_ERR(c->regulator)) { in omap2_onenand_probe() 758 r = PTR_ERR(c->regulator); in omap2_onenand_probe() 785 regulator_put(c->regulator); in omap2_onenand_probe() 809 regulator_put(c->regulator); in omap2_onenand_remove()
|