We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31a89d2 commit 830c364Copy full SHA for 830c364
drivers/regulator/sy7636a-regulator.c
@@ -35,7 +35,7 @@ static int sy7636a_get_vcom_voltage_op(struct regulator_dev *rdev)
35
36
static int sy7636a_get_status(struct regulator_dev *rdev)
37
{
38
- struct sy7636a *sy7636a = dev_get_drvdata(rdev->dev.parent);
+ struct sy7636a *sy7636a = rdev_get_drvdata(rdev);
39
int ret = 0;
40
41
ret = gpiod_get_value_cansleep(sy7636a->pgood_gpio);
0 commit comments