Lines Matching refs:ldo1
195 struct arizona_ldo1 *ldo1 = config->driver_data; in arizona_ldo1_of_get_pdata() local
209 init_data->consumer_supplies = &ldo1->supply; in arizona_ldo1_of_get_pdata()
227 struct arizona_ldo1 *ldo1, in arizona_ldo1_common_init() argument
238 ldo1->supply.supply = "DCVDD"; in arizona_ldo1_common_init()
239 ldo1->init_data.consumer_supplies = &ldo1->supply; in arizona_ldo1_common_init()
240 ldo1->supply.dev_name = dev_name(parent_dev); in arizona_ldo1_common_init()
243 config.driver_data = ldo1; in arizona_ldo1_common_init()
244 config.regmap = ldo1->regmap; in arizona_ldo1_common_init()
265 ldo1->ena_gpiod = config.ena_gpiod; in arizona_ldo1_common_init()
270 config.init_data = &ldo1->init_data; in arizona_ldo1_common_init()
279 ldo1->regulator = devm_regulator_register(&pdev->dev, desc, &config); in arizona_ldo1_common_init()
283 if (IS_ERR(ldo1->regulator)) { in arizona_ldo1_common_init()
284 ret = PTR_ERR(ldo1->regulator); in arizona_ldo1_common_init()
290 platform_set_drvdata(pdev, ldo1); in arizona_ldo1_common_init()
298 struct arizona_ldo1 *ldo1; in arizona_ldo1_probe() local
303 ldo1 = devm_kzalloc(&pdev->dev, sizeof(*ldo1), GFP_KERNEL); in arizona_ldo1_probe()
304 if (!ldo1) in arizona_ldo1_probe()
307 ldo1->regmap = arizona->regmap; in arizona_ldo1_probe()
320 ldo1->init_data = arizona_ldo1_dvfs; in arizona_ldo1_probe()
325 ldo1->init_data = arizona_ldo1_wm5110; in arizona_ldo1_probe()
329 ldo1->init_data = arizona_ldo1_default; in arizona_ldo1_probe()
333 ret = arizona_ldo1_common_init(pdev, ldo1, desc, in arizona_ldo1_probe()
334 &arizona->pdata.ldo1, in arizona_ldo1_probe()
344 struct arizona_ldo1 *ldo1 = platform_get_drvdata(pdev); in arizona_ldo1_remove() local
346 if (ldo1->ena_gpiod) in arizona_ldo1_remove()
347 gpiod_put(ldo1->ena_gpiod); in arizona_ldo1_remove()
355 struct arizona_ldo1 *ldo1; in madera_ldo1_probe() local
359 ldo1 = devm_kzalloc(&pdev->dev, sizeof(*ldo1), GFP_KERNEL); in madera_ldo1_probe()
360 if (!ldo1) in madera_ldo1_probe()
363 ldo1->regmap = madera->regmap; in madera_ldo1_probe()
365 ldo1->init_data = madera_ldo1_default; in madera_ldo1_probe()
367 ret = arizona_ldo1_common_init(pdev, ldo1, &madera_ldo1, in madera_ldo1_probe()
368 &madera->pdata.ldo1, in madera_ldo1_probe()