Lines Matching refs:desc
34 struct regulator_desc desc; member
131 const struct regulator_desc *desc) in of_get_gpio_regulator_config() argument
145 config->init_data = of_get_regulator_init_data(dev, np, desc); in of_get_gpio_regulator_config()
252 &drvdata->desc); in gpio_regulator_probe()
257 drvdata->desc.name = devm_kstrdup(dev, config->supply_name, GFP_KERNEL); in gpio_regulator_probe()
258 if (drvdata->desc.name == NULL) { in gpio_regulator_probe()
267 drvdata->desc.supply_name = devm_kstrdup(&pdev->dev, in gpio_regulator_probe()
270 if (!drvdata->desc.supply_name) { in gpio_regulator_probe()
287 gpiod_set_consumer_name(drvdata->gpiods[i], drvdata->desc.name); in gpio_regulator_probe()
302 drvdata->desc.owner = THIS_MODULE; in gpio_regulator_probe()
303 drvdata->desc.enable_time = config->startup_delay; in gpio_regulator_probe()
308 drvdata->desc.type = REGULATOR_VOLTAGE; in gpio_regulator_probe()
309 drvdata->desc.ops = &gpio_regulator_voltage_ops; in gpio_regulator_probe()
310 drvdata->desc.n_voltages = config->nr_states; in gpio_regulator_probe()
313 drvdata->desc.type = REGULATOR_CURRENT; in gpio_regulator_probe()
314 drvdata->desc.ops = &gpio_regulator_current_ops; in gpio_regulator_probe()
347 rdev = devm_regulator_register(dev, &drvdata->desc, &cfg); in gpio_regulator_probe()