Lines Matching refs:pmic
279 struct max8907_regulator *pmic; in max8907_regulator_probe() local
290 pmic = devm_kzalloc(&pdev->dev, sizeof(*pmic), GFP_KERNEL); in max8907_regulator_probe()
291 if (!pmic) in max8907_regulator_probe()
294 platform_set_drvdata(pdev, pmic); in max8907_regulator_probe()
296 memcpy(pmic->desc, max8907_regulators, sizeof(pmic->desc)); in max8907_regulator_probe()
305 pmic->desc[MAX8907_SD1].min_uV = 637500; in max8907_regulator_probe()
306 pmic->desc[MAX8907_SD1].uV_step = 12500; in max8907_regulator_probe()
307 pmic->desc[MAX8907_SD1].n_voltages = in max8907_regulator_probe()
320 config.driver_data = pmic; in max8907_regulator_probe()
324 switch (pmic->desc[i].id) { in max8907_regulator_probe()
329 mbatt_rail_name = pmic->desc[i].name; in max8907_regulator_probe()
338 if (pmic->desc[i].ops == &max8907_ldo_ops) { in max8907_regulator_probe()
339 ret = regmap_read(config.regmap, pmic->desc[i].enable_reg, in max8907_regulator_probe()
346 pmic->desc[i].ops = &max8907_ldo_hwctl_ops; in max8907_regulator_probe()
347 } else if (pmic->desc[i].ops == &max8907_out5v_ops) { in max8907_regulator_probe()
348 ret = regmap_read(config.regmap, pmic->desc[i].enable_reg, in max8907_regulator_probe()
356 pmic->desc[i].ops = &max8907_out5v_hwctl_ops; in max8907_regulator_probe()
360 &pmic->desc[i], &config); in max8907_regulator_probe()
364 pmic->desc[i].name); in max8907_regulator_probe()