Home
last modified time | relevance | path

Searched refs:max597x (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/drivers/regulator/
Dmax597x-regulator.c436 struct max597x_data *max597x = dev_get_drvdata(pdev->dev.parent); in max597x_regulator_probe() local
442 int num_switches = max597x->num_switches; in max597x_regulator_probe()
447 devm_kzalloc(max597x->dev, sizeof(struct max597x_regulator), in max597x_regulator_probe()
453 data->regmap = max597x->regmap; in max597x_regulator_probe()
455 ret = max597x_adc_range(data->regmap, i, &max597x->irng[i], &max597x->mon_rng[i]); in max597x_regulator_probe()
459 data->irng = max597x->irng[i]; in max597x_regulator_probe()
460 data->mon_rng = max597x->mon_rng[i]; in max597x_regulator_probe()
462 config.dev = max597x->dev; in max597x_regulator_probe()
465 rdev = devm_regulator_register(max597x->dev, in max597x_regulator_probe()
468 dev_err(max597x->dev, "failed to register regulator %s\n", in max597x_regulator_probe()
[all …]
DMakefile70 obj-$(CONFIG_REGULATOR_MAX597X) += max597x-regulator.o