[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210706114120.197-2-alistair@alistair23.me>
Date: Tue, 6 Jul 2021 21:41:20 +1000
From: Alistair Francis <alistair@...stair23.me>
To: lgirdwood@...il.com, broonie@...nel.org
Cc: linux-kernel@...r.kernel.org, alistair23@...il.com,
Alistair Francis <alistair@...stair23.me>
Subject: [PATCH 2/2] regulator: sy7636a: Use the parent driver data
Use the parent's MFD data instead of our data.
Signed-off-by: Alistair Francis <alistair@...stair23.me>
---
drivers/regulator/sy7636a-regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/sy7636a-regulator.c b/drivers/regulator/sy7636a-regulator.c
index c3b34cac8c7f..ddd7f8e435ea 100644
--- a/drivers/regulator/sy7636a-regulator.c
+++ b/drivers/regulator/sy7636a-regulator.c
@@ -33,7 +33,7 @@ static int sy7636a_get_vcom_voltage_op(struct regulator_dev *rdev)
static int sy7636a_get_status(struct regulator_dev *rdev)
{
- struct sy7636a *sy7636a = rdev_get_drvdata(rdev);
+ struct sy7636a *sy7636a = dev_get_drvdata(rdev->dev.parent);
int ret = 0;
ret = gpiod_get_value_cansleep(sy7636a->pgood_gpio);
--
2.31.1
Powered by blists - more mailing lists