Lines Matching refs:as3722_regs

421 	struct as3722_regulators *as3722_regs = rdev_get_drvdata(rdev);  in as3722_sd_get_mode()  local
422 struct as3722 *as3722 = as3722_regs->as3722; in as3722_sd_get_mode()
432 dev_err(as3722_regs->dev, "Reg 0x%02x read failed: %d\n", in as3722_sd_get_mode()
446 struct as3722_regulators *as3722_regs = rdev_get_drvdata(rdev); in as3722_sd_set_mode() local
447 struct as3722 *as3722 = as3722_regs->as3722; in as3722_sd_set_mode()
468 dev_err(as3722_regs->dev, "Reg 0x%02x update failed: %d\n", in as3722_sd_set_mode()
475 static bool as3722_sd0_is_low_voltage(struct as3722_regulators *as3722_regs) in as3722_sd0_is_low_voltage() argument
480 err = as3722_read(as3722_regs->as3722, AS3722_FUSE7_REG, &val); in as3722_sd0_is_low_voltage()
482 dev_err(as3722_regs->dev, "Reg 0x%02x read failed: %d\n", in as3722_sd0_is_low_voltage()
544 static int as3722_extreg_init(struct as3722_regulators *as3722_regs, int id, in as3722_extreg_init() argument
555 ret = as3722_update_bits(as3722_regs->as3722, in as3722_extreg_init()
559 dev_err(as3722_regs->dev, "Reg 0x%02x update failed: %d\n", in as3722_extreg_init()
586 struct as3722_regulators *as3722_regs) in as3722_get_regulator_dt_data() argument
613 reg_config = &as3722_regs->reg_config_data[id]; in as3722_get_regulator_dt_data()
638 struct as3722_regulators *as3722_regs; in as3722_regulator_probe() local
646 as3722_regs = devm_kzalloc(&pdev->dev, sizeof(*as3722_regs), in as3722_regulator_probe()
648 if (!as3722_regs) in as3722_regulator_probe()
651 as3722_regs->dev = &pdev->dev; in as3722_regulator_probe()
652 as3722_regs->as3722 = as3722; in as3722_regulator_probe()
653 platform_set_drvdata(pdev, as3722_regs); in as3722_regulator_probe()
655 ret = as3722_get_regulator_dt_data(pdev, as3722_regs); in as3722_regulator_probe()
660 config.driver_data = as3722_regs; in as3722_regulator_probe()
666 desc = &as3722_regs->desc[id]; in as3722_regulator_probe()
667 reg_config = &as3722_regs->reg_config_data[id]; in as3722_regulator_probe()
704 ret = as3722_ldo3_set_tracking_mode(as3722_regs, in as3722_regulator_probe()
739 as3722_sd0_is_low_voltage(as3722_regs)) { in as3722_regulator_probe()
740 as3722_regs->desc[id].n_voltages = in as3722_regulator_probe()
742 as3722_regs->desc[id].min_uV = 410000; in as3722_regulator_probe()
744 as3722_regs->desc[id].n_voltages = in as3722_regulator_probe()
746 as3722_regs->desc[id].min_uV = 610000; in as3722_regulator_probe()
813 ret = as3722_extreg_init(as3722_regs, id, in as3722_regulator_probe()