/drivers/iio/imu/st_lsm9ds0/ |
D | st_lsm9ds0_core.c | 26 lsm9ds0->vdd = devm_regulator_get(dev, "vdd"); in st_lsm9ds0_power_enable() 27 if (IS_ERR(lsm9ds0->vdd)) { in st_lsm9ds0_power_enable() 29 return PTR_ERR(lsm9ds0->vdd); in st_lsm9ds0_power_enable() 31 ret = regulator_enable(lsm9ds0->vdd); in st_lsm9ds0_power_enable() 40 regulator_disable(lsm9ds0->vdd); in st_lsm9ds0_power_enable() 46 regulator_disable(lsm9ds0->vdd); in st_lsm9ds0_power_enable() 58 regulator_disable(lsm9ds0->vdd); in st_lsm9ds0_power_disable() 96 data->vdd = lsm9ds0->vdd; in st_lsm9ds0_probe_accel() 125 data->vdd = lsm9ds0->vdd; in st_lsm9ds0_probe_magn()
|
/drivers/hid/i2c-hid/ |
D | i2c-hid-of-goodix.c | 28 struct regulator *vdd; member 50 return regulator_enable(ihid_goodix->vdd); in goodix_i2c_hid_power_up() 58 regulator_disable(ihid_goodix->vdd); in goodix_i2c_hid_power_down() 109 ihid_goodix->vdd = devm_regulator_get(&client->dev, "vdd"); in i2c_hid_of_goodix_probe() 110 if (IS_ERR(ihid_goodix->vdd)) in i2c_hid_of_goodix_probe() 111 return PTR_ERR(ihid_goodix->vdd); in i2c_hid_of_goodix_probe() 127 ret = devm_regulator_register_notifier(ihid_goodix->vdd, &ihid_goodix->nb); in i2c_hid_of_goodix_probe() 141 if (ihid_goodix->reset_gpio && regulator_is_enabled(ihid_goodix->vdd)) { in i2c_hid_of_goodix_probe() 142 ret = regulator_enable(ihid_goodix->vdd); in i2c_hid_of_goodix_probe() 146 regulator_disable(ihid_goodix->vdd); in i2c_hid_of_goodix_probe()
|
/drivers/hwmon/ |
D | mcp3021.c | 49 u32 vdd; /* supply and reference voltage in millivolt */ member 82 return DIV_ROUND_CLOSEST(data->vdd * val, 1 << data->output_res); in volts_from_reg() 123 &data->vdd)) in mcp3021_probe() 124 data->vdd /= 1000; in mcp3021_probe() 126 data->vdd = MCP3021_VDD_REF_DEFAULT; in mcp3021_probe() 131 data->vdd = *pdata; in mcp3021_probe() 133 data->vdd = MCP3021_VDD_REF_DEFAULT; in mcp3021_probe() 150 if (data->vdd > MCP3021_VDD_REF_MAX || data->vdd < MCP3021_VDD_REF_MIN) in mcp3021_probe()
|
/drivers/gpu/drm/bridge/ |
D | simple-bridge.c | 33 struct regulator *vdd; member 142 if (sbridge->vdd) { in simple_bridge_enable() 143 ret = regulator_enable(sbridge->vdd); in simple_bridge_enable() 157 if (sbridge->vdd) in simple_bridge_disable() 158 regulator_disable(sbridge->vdd); in simple_bridge_disable() 193 sbridge->vdd = devm_regulator_get_optional(&pdev->dev, "vdd"); in simple_bridge_probe() 194 if (IS_ERR(sbridge->vdd)) { in simple_bridge_probe() 195 int ret = PTR_ERR(sbridge->vdd); in simple_bridge_probe() 198 sbridge->vdd = NULL; in simple_bridge_probe()
|
/drivers/iio/light/ |
D | cm3605.c | 46 struct regulator *vdd; member 213 cm3605->vdd = devm_regulator_get(dev, "vdd"); in cm3605_probe() 214 if (IS_ERR(cm3605->vdd)) { in cm3605_probe() 216 return PTR_ERR(cm3605->vdd); in cm3605_probe() 218 ret = regulator_enable(cm3605->vdd); in cm3605_probe() 262 regulator_disable(cm3605->vdd); in cm3605_probe() 275 regulator_disable(cm3605->vdd); in cm3605_remove() 286 regulator_disable(cm3605->vdd); in cm3605_pm_suspend() 297 ret = regulator_enable(cm3605->vdd); in cm3605_pm_resume()
|
D | gp2ap002.c | 143 struct regulator *vdd; member 523 gp2ap002->vdd = devm_regulator_get(dev, "vdd"); in gp2ap002_probe() 524 if (IS_ERR(gp2ap002->vdd)) { in gp2ap002_probe() 526 return PTR_ERR(gp2ap002->vdd); in gp2ap002_probe() 535 ret = regulator_set_voltage(gp2ap002->vdd, 2400000, 3600000); in gp2ap002_probe() 542 ret = regulator_get_voltage(gp2ap002->vdd); in gp2ap002_probe() 553 ret = regulator_enable(gp2ap002->vdd); in gp2ap002_probe() 622 regulator_disable(gp2ap002->vdd); in gp2ap002_probe() 637 regulator_disable(gp2ap002->vdd); in gp2ap002_remove() 662 regulator_disable(gp2ap002->vdd); in gp2ap002_runtime_suspend() [all …]
|
/drivers/mfd/ |
D | stmfx.c | 330 stmfx->vdd = devm_regulator_get_optional(&client->dev, "vdd"); in stmfx_chip_init() 331 ret = PTR_ERR_OR_ZERO(stmfx->vdd); in stmfx_chip_init() 333 stmfx->vdd = NULL; in stmfx_chip_init() 338 if (stmfx->vdd) { in stmfx_chip_init() 339 ret = regulator_enable(stmfx->vdd); in stmfx_chip_init() 388 if (stmfx->vdd) in stmfx_chip_init() 389 regulator_disable(stmfx->vdd); in stmfx_chip_init() 401 if (stmfx->vdd) in stmfx_chip_exit() 402 return regulator_disable(stmfx->vdd); in stmfx_chip_exit() 490 if (stmfx->vdd) in stmfx_suspend() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
D | tegra.c | 35 if (tdev->vdd) { in nvkm_device_tegra_power_up() 36 ret = regulator_enable(tdev->vdd); in nvkm_device_tegra_power_up() 78 if (tdev->vdd) in nvkm_device_tegra_power_up() 79 regulator_disable(tdev->vdd); in nvkm_device_tegra_power_up() 95 if (tdev->vdd) { in nvkm_device_tegra_power_down() 96 ret = regulator_disable(tdev->vdd); in nvkm_device_tegra_power_down() 292 tdev->vdd = devm_regulator_get(&pdev->dev, "vdd"); in nvkm_device_tegra_new() 293 if (IS_ERR(tdev->vdd)) { in nvkm_device_tegra_new() 294 ret = PTR_ERR(tdev->vdd); in nvkm_device_tegra_new()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
D | gk20a.c | 98 uv = regulator_get_voltage(volt->vdd); in gk20a_volt_vid_get() 114 return regulator_set_voltage(volt->vdd, volt->base.vid[vid].uv, 1200000); in gk20a_volt_vid_set() 122 int prev_uv = regulator_get_voltage(volt->vdd); in gk20a_volt_set_id() 156 uv = regulator_get_voltage(tdev->vdd); in gk20a_volt_ctor() 159 volt->vdd = tdev->vdd; in gk20a_volt_ctor()
|
/drivers/gpu/drm/panel/ |
D | panel-sharp-ls037v7dw01.c | 28 struct regulator *vdd; member 56 regulator_disable(lcd->vdd); in ls037v7dw01_unprepare() 65 ret = regulator_enable(lcd->vdd); in ls037v7dw01_prepare() 148 lcd->vdd = devm_regulator_get(&pdev->dev, "envdd"); in ls037v7dw01_probe() 149 if (IS_ERR(lcd->vdd)) { in ls037v7dw01_probe() 151 return PTR_ERR(lcd->vdd); in ls037v7dw01_probe()
|
D | panel-elida-kd35t133.c | 43 struct regulator *vdd; member 118 regulator_disable(ctx->vdd); in kd35t133_unprepare() 135 ret = regulator_enable(ctx->vdd); in kd35t133_prepare() 184 regulator_disable(ctx->vdd); in kd35t133_prepare() 249 ctx->vdd = devm_regulator_get(dev, "vdd"); in kd35t133_probe() 250 if (IS_ERR(ctx->vdd)) { in kd35t133_probe() 251 ret = PTR_ERR(ctx->vdd); in kd35t133_probe()
|
/drivers/iio/adc/ |
D | max1241.c | 25 struct regulator *vdd; member 119 err = regulator_disable(adc->vdd); in max1241_disable_vdd_action() 150 adc->vdd = devm_regulator_get(dev, "vdd"); in max1241_probe() 151 if (IS_ERR(adc->vdd)) { in max1241_probe() 153 return PTR_ERR(adc->vdd); in max1241_probe() 156 ret = regulator_enable(adc->vdd); in max1241_probe()
|
D | stm32-adc-core.c | 103 struct regulator *vdd; member 455 ret = regulator_enable(priv->vdd); in stm32_adc_core_switches_supply_en() 465 regulator_disable(priv->vdd); in stm32_adc_core_switches_supply_en() 503 regulator_disable(priv->vdd); in stm32_adc_core_switches_supply_dis() 614 priv->vdd = devm_regulator_get_optional(dev, "vdd"); in stm32_adc_core_switches_probe() 615 if (IS_ERR(priv->vdd)) { in stm32_adc_core_switches_probe() 616 ret = PTR_ERR(priv->vdd); in stm32_adc_core_switches_probe() 620 priv->vdd = NULL; in stm32_adc_core_switches_probe() 624 if (priv->vdd) { in stm32_adc_core_switches_probe() 625 ret = regulator_enable(priv->vdd); in stm32_adc_core_switches_probe() [all …]
|
D | exynos_adc.c | 132 struct regulator *vdd; member 545 ret = regulator_get_voltage(info->vdd); in exynos_read_raw() 871 info->vdd = devm_regulator_get(&pdev->dev, "vdd"); in exynos_adc_probe() 872 if (IS_ERR(info->vdd)) in exynos_adc_probe() 873 return dev_err_probe(&pdev->dev, PTR_ERR(info->vdd), in exynos_adc_probe() 876 ret = regulator_enable(info->vdd); in exynos_adc_probe() 949 regulator_disable(info->vdd); in exynos_adc_probe() 970 regulator_disable(info->vdd); in exynos_adc_remove() 984 regulator_disable(info->vdd); in exynos_adc_suspend() 995 ret = regulator_enable(info->vdd); in exynos_adc_resume()
|
/drivers/mmc/core/ |
D | debugfs.c | 62 seq_printf(s, "vdd:\t\t%u ", ios->vdd); in mmc_ios_show() 63 if ((1 << ios->vdd) & MMC_VDD_165_195) in mmc_ios_show() 65 else if (ios->vdd < (ARRAY_SIZE(vdd_str) - 1) in mmc_ios_show() 66 && vdd_str[ios->vdd] && vdd_str[ios->vdd + 1]) in mmc_ios_show() 67 seq_printf(s, "(%s ~ %s V)\n", vdd_str[ios->vdd], in mmc_ios_show() 68 vdd_str[ios->vdd + 1]); in mmc_ios_show()
|
/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_mdss.c | 19 struct regulator *vdd; member 192 regulator_disable(mdp5_mdss->vdd); in mdp5_mdss_destroy() 242 mdp5_mdss->vdd = devm_regulator_get(dev->dev, "vdd"); in mdp5_mdss_init() 243 if (IS_ERR(mdp5_mdss->vdd)) { in mdp5_mdss_init() 244 ret = PTR_ERR(mdp5_mdss->vdd); in mdp5_mdss_init() 248 ret = regulator_enable(mdp5_mdss->vdd); in mdp5_mdss_init() 275 regulator_disable(mdp5_mdss->vdd); in mdp5_mdss_init()
|
/drivers/leds/ |
D | leds-cpcap.c | 67 struct regulator *vdd; member 89 err = regulator_enable(led->vdd); in cpcap_led_set_power() 91 err = regulator_disable(led->vdd); in cpcap_led_set_power() 180 led->vdd = devm_regulator_get(&pdev->dev, "vdd"); in cpcap_led_probe() 181 if (IS_ERR(led->vdd)) { in cpcap_led_probe() 182 err = PTR_ERR(led->vdd); in cpcap_led_probe()
|
/drivers/gpu/drm/tegra/ |
D | dpaux.c | 53 struct regulator *vdd; member 504 dpaux->vdd = devm_regulator_get_optional(&pdev->dev, "vdd"); in tegra_dpaux_probe() 505 if (IS_ERR(dpaux->vdd)) { in tegra_dpaux_probe() 506 if (PTR_ERR(dpaux->vdd) != -ENODEV) { in tegra_dpaux_probe() 507 if (PTR_ERR(dpaux->vdd) != -EPROBE_DEFER) in tegra_dpaux_probe() 510 PTR_ERR(dpaux->vdd)); in tegra_dpaux_probe() 512 return PTR_ERR(dpaux->vdd); in tegra_dpaux_probe() 515 dpaux->vdd = NULL; in tegra_dpaux_probe() 731 if (dpaux->vdd) { in drm_dp_aux_attach() 732 err = regulator_enable(dpaux->vdd); in drm_dp_aux_attach() [all …]
|
/drivers/input/touchscreen/ |
D | bu21029_ts.c | 159 struct regulator *vdd; member 269 error = regulator_enable(bu21029->vdd); in bu21029_start_chip() 319 regulator_disable(bu21029->vdd); in bu21029_start_chip() 331 regulator_disable(bu21029->vdd); in bu21029_stop_chip() 362 bu21029->vdd = devm_regulator_get(&client->dev, "vdd"); in bu21029_probe() 363 if (IS_ERR(bu21029->vdd)) { in bu21029_probe() 364 error = PTR_ERR(bu21029->vdd); in bu21029_probe()
|
/drivers/rtc/ |
D | rtc-meson.c | 65 struct regulator *vdd; /* voltage input */ member 331 rtc->vdd = devm_regulator_get(dev, "vdd"); in meson_rtc_probe() 332 if (IS_ERR(rtc->vdd)) { in meson_rtc_probe() 334 return PTR_ERR(rtc->vdd); in meson_rtc_probe() 337 ret = regulator_enable(rtc->vdd); in meson_rtc_probe() 379 regulator_disable(rtc->vdd); in meson_rtc_probe()
|
/drivers/iio/pressure/ |
D | ms5611_core.c | 386 st->vdd = devm_regulator_get(indio_dev->dev.parent, "vdd"); in ms5611_init() 387 if (IS_ERR(st->vdd)) in ms5611_init() 388 return PTR_ERR(st->vdd); in ms5611_init() 390 ret = regulator_enable(st->vdd); in ms5611_init() 408 regulator_disable(st->vdd); in ms5611_init() 416 regulator_disable(st->vdd); in ms5611_fini()
|
D | zpa2326.c | 134 struct regulator *vdd; member 340 err = regulator_enable(private->vdd); in zpa2326_power_on() 348 goto vdd; in zpa2326_power_on() 358 vdd: in zpa2326_power_on() 359 regulator_disable(private->vdd); in zpa2326_power_on() 379 regulator_disable(private->vdd); in zpa2326_power_off() 1628 priv->vdd = devm_regulator_get(parent, "vdd"); in zpa2326_probe() 1629 if (IS_ERR(priv->vdd)) in zpa2326_probe() 1630 return PTR_ERR(priv->vdd); in zpa2326_probe()
|
D | icp10100.c | 42 struct regulator *vdd; member 508 ret = regulator_enable(st->vdd); in icp10100_enable_regulator() 521 ret = regulator_disable(st->vdd); in icp10100_disable_regulator_action() 561 st->vdd = devm_regulator_get(&client->dev, "vdd"); in icp10100_probe() 562 if (IS_ERR(st->vdd)) in icp10100_probe() 563 return PTR_ERR(st->vdd); in icp10100_probe() 604 ret = regulator_disable(st->vdd); in icp10100_suspend()
|
/drivers/usb/misc/ |
D | usb251xb.c | 115 struct regulator *vdd; member 643 regulator_disable(hub->vdd); in usb251xb_regulator_disable_action() 680 hub->vdd = devm_regulator_get(dev, "vdd"); in usb251xb_probe() 681 if (IS_ERR(hub->vdd)) in usb251xb_probe() 682 return PTR_ERR(hub->vdd); in usb251xb_probe() 684 err = regulator_enable(hub->vdd); in usb251xb_probe() 725 return regulator_disable(hub->vdd); in usb251xb_suspend() 734 err = regulator_enable(hub->vdd); in usb251xb_resume()
|
/drivers/iio/chemical/ |
D | scd30_core.c | 530 return regulator_disable(state->vdd); in scd30_suspend() 540 ret = regulator_enable(state->vdd); in scd30_resume() 559 regulator_disable(state->vdd); in scd30_disable_regulator() 707 state->vdd = devm_regulator_get(dev, "vdd"); in scd30_probe() 708 if (IS_ERR(state->vdd)) in scd30_probe() 709 return dev_err_probe(dev, PTR_ERR(state->vdd), "failed to get regulator\n"); in scd30_probe() 711 ret = regulator_enable(state->vdd); in scd30_probe()
|