Lines Matching refs:rdev

38 static int stm32_vrefbuf_enable(struct regulator_dev *rdev)  in stm32_vrefbuf_enable()  argument
40 struct stm32_vrefbuf *priv = rdev_get_drvdata(rdev); in stm32_vrefbuf_enable()
56 dev_err(&rdev->dev, "stm32 vrefbuf timed out!\n"); in stm32_vrefbuf_enable()
65 static int stm32_vrefbuf_disable(struct regulator_dev *rdev) in stm32_vrefbuf_disable() argument
67 struct stm32_vrefbuf *priv = rdev_get_drvdata(rdev); in stm32_vrefbuf_disable()
76 static int stm32_vrefbuf_is_enabled(struct regulator_dev *rdev) in stm32_vrefbuf_is_enabled() argument
78 struct stm32_vrefbuf *priv = rdev_get_drvdata(rdev); in stm32_vrefbuf_is_enabled()
83 static int stm32_vrefbuf_set_voltage_sel(struct regulator_dev *rdev, in stm32_vrefbuf_set_voltage_sel() argument
86 struct stm32_vrefbuf *priv = rdev_get_drvdata(rdev); in stm32_vrefbuf_set_voltage_sel()
95 static int stm32_vrefbuf_get_voltage_sel(struct regulator_dev *rdev) in stm32_vrefbuf_get_voltage_sel() argument
97 struct stm32_vrefbuf *priv = rdev_get_drvdata(rdev); in stm32_vrefbuf_get_voltage_sel()
127 struct regulator_dev *rdev; in stm32_vrefbuf_probe() local
156 rdev = regulator_register(&stm32_vrefbuf_regu, &config); in stm32_vrefbuf_probe()
157 if (IS_ERR(rdev)) { in stm32_vrefbuf_probe()
158 ret = PTR_ERR(rdev); in stm32_vrefbuf_probe()
162 platform_set_drvdata(pdev, rdev); in stm32_vrefbuf_probe()
174 struct regulator_dev *rdev = platform_get_drvdata(pdev); in stm32_vrefbuf_remove() local
175 struct stm32_vrefbuf *priv = rdev_get_drvdata(rdev); in stm32_vrefbuf_remove()
177 regulator_unregister(rdev); in stm32_vrefbuf_remove()