Lines Matching refs:ldo
3 * TI LP8788 MFD - ldo regulator driver
155 struct lp8788_ldo *ldo = rdev_get_drvdata(rdev);
159 if (lp8788_read_byte(ldo->lp, addr, &val))
462 struct lp8788_ldo *ldo,
465 struct lp8788 *lp = ldo->lp;
505 ldo->ena_gpiod = gpiod_get_index_optional(&pdev->dev,
510 if (IS_ERR(ldo->ena_gpiod))
511 return PTR_ERR(ldo->ena_gpiod);
513 /* if no GPIO for ldo pin, then set default enable mode */
514 if (!ldo->ena_gpiod)
527 struct lp8788_ldo *ldo;
532 ldo = devm_kzalloc(&pdev->dev, sizeof(struct lp8788_ldo), GFP_KERNEL);
533 if (!ldo)
536 ldo->lp = lp;
537 ret = lp8788_config_ldo_enable_mode(pdev, ldo, id);
541 if (ldo->ena_gpiod)
542 cfg.ena_gpiod = ldo->ena_gpiod;
546 cfg.driver_data = ldo;
557 ldo->regulator = rdev;
558 platform_set_drvdata(pdev, ldo);
575 struct lp8788_ldo *ldo;
580 ldo = devm_kzalloc(&pdev->dev, sizeof(struct lp8788_ldo), GFP_KERNEL);
581 if (!ldo)
584 ldo->lp = lp;
585 ret = lp8788_config_ldo_enable_mode(pdev, ldo, id + ALDO1);
589 if (ldo->ena_gpiod)
590 cfg.ena_gpiod = ldo->ena_gpiod;
594 cfg.driver_data = ldo;
605 ldo->regulator = rdev;
606 platform_set_drvdata(pdev, ldo);