Lines Matching refs:rdev

45 static int max8925_set_voltage_sel(struct regulator_dev *rdev,  in max8925_set_voltage_sel()  argument
48 struct max8925_regulator_info *info = rdev_get_drvdata(rdev); in max8925_set_voltage_sel()
49 unsigned char mask = rdev->desc->n_voltages - 1; in max8925_set_voltage_sel()
54 static int max8925_get_voltage_sel(struct regulator_dev *rdev) in max8925_get_voltage_sel() argument
56 struct max8925_regulator_info *info = rdev_get_drvdata(rdev); in max8925_get_voltage_sel()
63 mask = rdev->desc->n_voltages - 1; in max8925_get_voltage_sel()
69 static int max8925_enable(struct regulator_dev *rdev) in max8925_enable() argument
71 struct max8925_regulator_info *info = rdev_get_drvdata(rdev); in max8925_enable()
80 static int max8925_disable(struct regulator_dev *rdev) in max8925_disable() argument
82 struct max8925_regulator_info *info = rdev_get_drvdata(rdev); in max8925_disable()
90 static int max8925_is_enabled(struct regulator_dev *rdev) in max8925_is_enabled() argument
92 struct max8925_regulator_info *info = rdev_get_drvdata(rdev); in max8925_is_enabled()
105 static int max8925_set_dvm_voltage(struct regulator_dev *rdev, int uV) in max8925_set_dvm_voltage() argument
107 struct max8925_regulator_info *info = rdev_get_drvdata(rdev); in max8925_set_dvm_voltage()
120 static int max8925_set_dvm_enable(struct regulator_dev *rdev) in max8925_set_dvm_enable() argument
122 struct max8925_regulator_info *info = rdev_get_drvdata(rdev); in max8925_set_dvm_enable()
128 static int max8925_set_dvm_disable(struct regulator_dev *rdev) in max8925_set_dvm_disable() argument
130 struct max8925_regulator_info *info = rdev_get_drvdata(rdev); in max8925_set_dvm_disable()
283 struct regulator_dev *rdev; in max8925_regulator_probe() local
313 rdev = devm_regulator_register(&pdev->dev, &ri->desc, &config); in max8925_regulator_probe()
314 if (IS_ERR(rdev)) { in max8925_regulator_probe()
317 return PTR_ERR(rdev); in max8925_regulator_probe()
320 platform_set_drvdata(pdev, rdev); in max8925_regulator_probe()