Unverified Commit 830c364f authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

regulator: sy7636a: Use rdev_get_drvdata at proper place



At the context with *rdev, use rdev_get_drvdata() is more intuitive.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Reviewed-by: default avatarAlistair Francis <alistair@alistair23.me>
Link: https://lore.kernel.org/r/20210616034458.3499522-3-axel.lin@ingics.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 31a89d29
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ static int sy7636a_get_vcom_voltage_op(struct regulator_dev *rdev)

static int sy7636a_get_status(struct regulator_dev *rdev)
{
	struct sy7636a *sy7636a = dev_get_drvdata(rdev->dev.parent);
	struct sy7636a *sy7636a = rdev_get_drvdata(rdev);
	int ret = 0;

	ret = gpiod_get_value_cansleep(sy7636a->pgood_gpio);