Lines Matching refs:rdevs
53 struct regulator_dev **rdevs = dev_get_drvdata(dev); in max5970_read() local
54 struct max5970_regulator *ddata = rdev_get_drvdata(rdevs[channel]); in max5970_read()
109 struct regulator_dev **rdevs = (struct regulator_dev **)data; in max5970_is_visible() local
112 if (channel >= MAX5970_NUM_SWITCHES || !rdevs[channel]) in max5970_is_visible()
115 ddata = rdev_get_drvdata(rdevs[channel]); in max5970_is_visible()
523 struct regulator_dev *rdevs[MAX5970_NUM_SWITCHES], in max597x_setup_irq()
542 &rdevs[0], num_switches); in max597x_setup_irq()
560 struct regulator_dev **rdevs = NULL; in max597x_regulator_probe() local
568 rdevs = devm_kcalloc(&i2c->dev, MAX5970_NUM_SWITCHES, sizeof(struct regulator_dev *), in max597x_regulator_probe()
570 if (!rdevs) in max597x_regulator_probe()
604 rdevs[i] = rdev; in max597x_regulator_probe()
608 hwmon_dev = devm_hwmon_device_register_with_info(&i2c->dev, "max5970", rdevs, in max597x_regulator_probe()
618 max597x_setup_irq(&i2c->dev, i2c->irq, rdevs, num_switches, in max597x_regulator_probe()