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

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.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 31a89d29
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment