Home
last modified time | relevance | path

Searched refs:ena_gpiod (Results 1 - 25 of 44) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/regulator/
H A Darizona-ldo1.c39 struct gpio_desc *ena_gpiod; member
260 config.ena_gpiod = gpiod_get_optional(parent_dev, "wlf,ldoena", in arizona_ldo1_common_init()
262 if (IS_ERR(config.ena_gpiod)) in arizona_ldo1_common_init()
263 return PTR_ERR(config.ena_gpiod); in arizona_ldo1_common_init()
265 ldo1->ena_gpiod = config.ena_gpiod; in arizona_ldo1_common_init()
346 if (ldo1->ena_gpiod) in arizona_ldo1_remove()
347 gpiod_put(ldo1->ena_gpiod); in arizona_ldo1_remove()
H A Dlp8788-ldo.c114 struct gpio_desc *ena_gpiod; member
505 ldo->ena_gpiod = gpiod_get_index_optional(&pdev->dev, in lp8788_config_ldo_enable_mode()
510 if (IS_ERR(ldo->ena_gpiod)) in lp8788_config_ldo_enable_mode()
511 return PTR_ERR(ldo->ena_gpiod); in lp8788_config_ldo_enable_mode()
514 if (!ldo->ena_gpiod) in lp8788_config_ldo_enable_mode()
541 if (ldo->ena_gpiod) in lp8788_dldo_probe()
542 cfg.ena_gpiod = ldo->ena_gpiod; in lp8788_dldo_probe()
588 if (ldo->ena_gpiod) in lp8788_aldo_probe()
589 cfg.ena_gpiod in lp8788_aldo_probe()
[all...]
H A Dmax77686-regulator.c259 config->ena_gpiod = fwnode_gpiod_get_index( in max77686_of_parse_cb()
265 if (IS_ERR(config->ena_gpiod)) in max77686_of_parse_cb()
266 config->ena_gpiod = NULL; in max77686_of_parse_cb()
272 if (config->ena_gpiod) { in max77686_of_parse_cb()
279 gpiod_put(config->ena_gpiod); in max77686_of_parse_cb()
280 config->ena_gpiod = NULL; in max77686_of_parse_cb()
H A Dfixed.c229 cfg.ena_gpiod = gpiod_get_optional(&pdev->dev, NULL, gflags); in reg_fixed_voltage_probe()
230 if (IS_ERR(cfg.ena_gpiod)) in reg_fixed_voltage_probe()
231 return PTR_ERR(cfg.ena_gpiod); in reg_fixed_voltage_probe()
H A Dslg51000-regulator.c201 struct gpio_desc *ena_gpiod; in slg51000_of_parse_cb() local
203 ena_gpiod = fwnode_gpiod_get_index(of_fwnode_handle(np), "enable", 0, in slg51000_of_parse_cb()
207 if (!IS_ERR(ena_gpiod)) in slg51000_of_parse_cb()
208 config->ena_gpiod = ena_gpiod; in slg51000_of_parse_cb()
H A Dgpio-regulator.c328 cfg.ena_gpiod = gpiod_get_optional(dev, "enable", gflags); in gpio_regulator_probe()
329 if (IS_ERR(cfg.ena_gpiod)) in gpio_regulator_probe()
330 return PTR_ERR(cfg.ena_gpiod); in gpio_regulator_probe()
H A Dda9211-regulator.c412 config.ena_gpiod = chip->pdata->gpiod_ren[i]; in da9211_regulator_init()
414 config.ena_gpiod = NULL; in da9211_regulator_init()
420 if (config.ena_gpiod) in da9211_regulator_init()
421 devm_gpiod_unhinge(chip->dev, config.ena_gpiod); in da9211_regulator_init()
H A Dbd9576-regulator.c240 config.ena_gpiod = en; in bd957x_probe()
308 config.ena_gpiod = NULL; in bd957x_probe()
H A Dtps65090-regulator.c453 config.ena_gpiod = tps_pdata->gpiod; in tps65090_regulator_probe()
482 if (config.ena_gpiod) in tps65090_regulator_probe()
483 devm_gpiod_unhinge(&pdev->dev, config.ena_gpiod); in tps65090_regulator_probe()
H A Dmax8973-regulator.c768 config.ena_gpiod = gpiod; in max8973_probe()
814 * lifecycle management if we pass an ena_gpiod. in max8973_probe()
816 if (config.ena_gpiod) in max8973_probe()
817 devm_gpiod_unhinge(&client->dev, config.ena_gpiod); in max8973_probe()
H A Ds5m8767.c458 config->ena_gpiod = rdata->ext_control_gpiod; in s5m8767_regulator_config_ext_control()
963 config.ena_gpiod = NULL; in s5m8767_pmic_probe()
965 /* Assigns config.ena_gpiod */ in s5m8767_pmic_probe()
973 devm_gpiod_unhinge(s5m8767->dev, config.ena_gpiod); in s5m8767_pmic_probe()
/kernel/linux/linux-6.6/drivers/regulator/
H A Darizona-ldo1.c39 struct gpio_desc *ena_gpiod; member
260 config.ena_gpiod = gpiod_get_optional(parent_dev, "wlf,ldoena", in arizona_ldo1_common_init()
262 if (IS_ERR(config.ena_gpiod)) in arizona_ldo1_common_init()
263 return PTR_ERR(config.ena_gpiod); in arizona_ldo1_common_init()
265 ldo1->ena_gpiod = config.ena_gpiod; in arizona_ldo1_common_init()
346 if (ldo1->ena_gpiod) in arizona_ldo1_remove()
347 gpiod_put(ldo1->ena_gpiod); in arizona_ldo1_remove()
H A Dlp8788-ldo.c114 struct gpio_desc *ena_gpiod; member
505 ldo->ena_gpiod = gpiod_get_index_optional(&pdev->dev, in lp8788_config_ldo_enable_mode()
510 if (IS_ERR(ldo->ena_gpiod)) in lp8788_config_ldo_enable_mode()
511 return PTR_ERR(ldo->ena_gpiod); in lp8788_config_ldo_enable_mode()
514 if (!ldo->ena_gpiod) in lp8788_config_ldo_enable_mode()
541 if (ldo->ena_gpiod) in lp8788_dldo_probe()
542 cfg.ena_gpiod = ldo->ena_gpiod; in lp8788_dldo_probe()
589 if (ldo->ena_gpiod) in lp8788_aldo_probe()
590 cfg.ena_gpiod in lp8788_aldo_probe()
[all...]
H A Dmax20086-regulator.c62 struct gpio_desc *ena_gpiod; member
117 config.ena_gpiod = chip->ena_gpiod; in max20086_regulators_register()
262 chip->ena_gpiod = devm_gpiod_get(chip->dev, "enable", flags); in max20086_i2c_probe()
263 if (IS_ERR(chip->ena_gpiod)) { in max20086_i2c_probe()
264 ret = PTR_ERR(chip->ena_gpiod); in max20086_i2c_probe()
H A Dmax20411-regulator.c129 cfg.ena_gpiod = gpiod_get(max20411->dev, "enable", GPIOD_ASIS); in max20411_probe()
130 if (IS_ERR(cfg.ena_gpiod)) in max20411_probe()
131 return dev_err_probe(dev, PTR_ERR(cfg.ena_gpiod), in max20411_probe()
H A Dmax77686-regulator.c227 config->ena_gpiod = fwnode_gpiod_get_index( in max77686_of_parse_cb()
233 if (IS_ERR(config->ena_gpiod)) in max77686_of_parse_cb()
234 config->ena_gpiod = NULL; in max77686_of_parse_cb()
240 if (config->ena_gpiod) { in max77686_of_parse_cb()
247 gpiod_put(config->ena_gpiod); in max77686_of_parse_cb()
248 config->ena_gpiod = NULL; in max77686_of_parse_cb()
H A Dslg51000-regulator.c201 struct gpio_desc *ena_gpiod; in slg51000_of_parse_cb() local
203 ena_gpiod = fwnode_gpiod_get_index(of_fwnode_handle(np), "enable", 0, in slg51000_of_parse_cb()
207 if (!IS_ERR(ena_gpiod)) in slg51000_of_parse_cb()
208 config->ena_gpiod = ena_gpiod; in slg51000_of_parse_cb()
H A Dfixed.c273 cfg.ena_gpiod = gpiod_get_optional(&pdev->dev, NULL, gflags); in reg_fixed_voltage_probe()
274 if (IS_ERR(cfg.ena_gpiod)) in reg_fixed_voltage_probe()
275 return dev_err_probe(&pdev->dev, PTR_ERR(cfg.ena_gpiod), in reg_fixed_voltage_probe()
H A Dda9211-regulator.c412 config.ena_gpiod = chip->pdata->gpiod_ren[i]; in da9211_regulator_init()
414 config.ena_gpiod = NULL; in da9211_regulator_init()
420 if (config.ena_gpiod) in da9211_regulator_init()
421 devm_gpiod_unhinge(chip->dev, config.ena_gpiod); in da9211_regulator_init()
H A Dgpio-regulator.c343 cfg.ena_gpiod = gpiod_get_optional(dev, "enable", gflags); in gpio_regulator_probe()
344 if (IS_ERR(cfg.ena_gpiod)) in gpio_regulator_probe()
345 return PTR_ERR(cfg.ena_gpiod); in gpio_regulator_probe()
H A Dtps65090-regulator.c453 config.ena_gpiod = tps_pdata->gpiod; in tps65090_regulator_probe()
482 if (config.ena_gpiod) in tps65090_regulator_probe()
483 devm_gpiod_unhinge(&pdev->dev, config.ena_gpiod); in tps65090_regulator_probe()
H A Dmt6370-regulator.c162 config->ena_gpiod = NULL; in mt6370_of_parse_cb()
178 config->ena_gpiod = enable_gpio; in mt6370_of_parse_cb()
H A Dmax8973-regulator.c736 config.ena_gpiod = gpiod; in max8973_probe()
782 * lifecycle management if we pass an ena_gpiod. in max8973_probe()
784 if (config.ena_gpiod) in max8973_probe()
785 devm_gpiod_unhinge(&client->dev, config.ena_gpiod); in max8973_probe()
H A Dda9121-regulator.c383 struct gpio_desc *ena_gpiod; in da9121_of_parse_cb() local
400 ena_gpiod = fwnode_gpiod_get_index(of_fwnode_handle(np), "enable", 0, in da9121_of_parse_cb()
404 if (!IS_ERR(ena_gpiod)) in da9121_of_parse_cb()
405 config->ena_gpiod = ena_gpiod; in da9121_of_parse_cb()
H A Dbd71815-regulator.c599 config.ena_gpiod = ldo4_en; in bd7181x_probe()
601 config.ena_gpiod = NULL; in bd7181x_probe()

Completed in 18 milliseconds

12