Lines Matching defs:da9052
2 * da9052-regulator.c: Regulator driver for DA9052
23 #include <linux/mfd/da9052/da9052.h>
24 #include <linux/mfd/da9052/reg.h>
25 #include <linux/mfd/da9052/pdata.h>
59 struct da9052 *da9052;
79 return da9052_reg_update(regulator->da9052,
90 return da9052_reg_update(regulator->da9052,
102 ret = da9052_reg_read(regulator->da9052, DA9052_BUCKCORE_REG + offset);
115 ret = da9052_reg_read(regulator->da9052, DA9052_BUCKA_REG + offset/2);
128 if (regulator->da9052->chip_id == DA9052)
145 if (regulator->da9052->chip_id == DA9052)
165 return da9052_reg_update(regulator->da9052,
170 return da9052_reg_update(regulator->da9052,
183 if ((regulator->da9052->chip_id == DA9052) &&
235 return da9052_reg_update(regulator->da9052,
263 return da9052_reg_update(regulator->da9052, DA9052_SUPPLY_REG,
283 return da9052_reg_update(regulator->da9052, DA9052_SUPPLY_REG,
294 ret = da9052_reg_read(regulator->da9052, DA9052_BUCKCORE_REG + offset);
318 if ((regulator->da9052->chip_id == DA9052) &&
330 return da9052_reg_update(regulator->da9052,
342 ret = da9052_reg_read(regulator->da9052, DA9052_BUCKCORE_REG + offset);
537 struct da9052 *da9052;
546 da9052 = dev_get_drvdata(pdev->dev.parent);
547 pdata = da9052->dev->platform_data;
548 regulator->da9052 = da9052;
550 regulator->info = find_regulator_info(regulator->da9052->chip_id,
590 .name = "da9052-regulator",
610 MODULE_ALIAS("platform:da9052-regulator");