• Home
  • Raw
  • Download

Lines Matching refs:ldo

155 	struct lp8788_ldo *ldo = rdev_get_drvdata(rdev);  in lp8788_ldo_enable_time()  local
159 if (lp8788_read_byte(ldo->lp, addr, &val)) in lp8788_ldo_enable_time()
462 struct lp8788_ldo *ldo, in lp8788_config_ldo_enable_mode() argument
465 struct lp8788 *lp = ldo->lp; in lp8788_config_ldo_enable_mode()
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()
527 struct lp8788_ldo *ldo; in lp8788_dldo_probe() local
532 ldo = devm_kzalloc(&pdev->dev, sizeof(struct lp8788_ldo), GFP_KERNEL); in lp8788_dldo_probe()
533 if (!ldo) in lp8788_dldo_probe()
536 ldo->lp = lp; in lp8788_dldo_probe()
537 ret = lp8788_config_ldo_enable_mode(pdev, ldo, id); in lp8788_dldo_probe()
541 if (ldo->ena_gpiod) in lp8788_dldo_probe()
542 cfg.ena_gpiod = ldo->ena_gpiod; in lp8788_dldo_probe()
546 cfg.driver_data = ldo; in lp8788_dldo_probe()
557 ldo->regulator = rdev; in lp8788_dldo_probe()
558 platform_set_drvdata(pdev, ldo); in lp8788_dldo_probe()
574 struct lp8788_ldo *ldo; in lp8788_aldo_probe() local
579 ldo = devm_kzalloc(&pdev->dev, sizeof(struct lp8788_ldo), GFP_KERNEL); in lp8788_aldo_probe()
580 if (!ldo) in lp8788_aldo_probe()
583 ldo->lp = lp; in lp8788_aldo_probe()
584 ret = lp8788_config_ldo_enable_mode(pdev, ldo, id + ALDO1); in lp8788_aldo_probe()
588 if (ldo->ena_gpiod) in lp8788_aldo_probe()
589 cfg.ena_gpiod = ldo->ena_gpiod; in lp8788_aldo_probe()
593 cfg.driver_data = ldo; in lp8788_aldo_probe()
604 ldo->regulator = rdev; in lp8788_aldo_probe()
605 platform_set_drvdata(pdev, ldo); in lp8788_aldo_probe()