Lines Matching defs:rdev
52 static int rt6160_enable(struct regulator_dev *rdev)
54 struct rt6160_priv *priv = rdev_get_drvdata(rdev);
68 static int rt6160_disable(struct regulator_dev *rdev)
70 struct rt6160_priv *priv = rdev_get_drvdata(rdev);
85 static int rt6160_is_enabled(struct regulator_dev *rdev)
87 struct rt6160_priv *priv = rdev_get_drvdata(rdev);
92 static int rt6160_set_mode(struct regulator_dev *rdev, unsigned int mode)
94 struct regmap *regmap = rdev_get_regmap(rdev);
105 dev_err(&rdev->dev, "mode not supported\n");
112 static unsigned int rt6160_get_mode(struct regulator_dev *rdev)
114 struct regmap *regmap = rdev_get_regmap(rdev);
128 static int rt6160_set_suspend_voltage(struct regulator_dev *rdev, int uV)
130 struct regmap *regmap = rdev_get_regmap(rdev);
134 vsel = regulator_map_voltage_linear(rdev, uV, uV);
138 if (rdev->desc->vsel_reg == RT6160_REG_VSELL)
147 static int rt6160_get_error_flags(struct regulator_dev *rdev, unsigned int *flags)
149 struct regmap *regmap = rdev_get_regmap(rdev);
231 struct regulator_dev *rdev;
293 rdev = devm_regulator_register(&i2c->dev, &priv->desc, ®ulator_cfg);
294 if (IS_ERR(rdev)) {
296 return PTR_ERR(rdev);