Skip to content

Commit 830c364

Browse files
AxelLinbroonie
authored andcommitted
regulator: sy7636a: Use rdev_get_drvdata at proper place
At the context with *rdev, use rdev_get_drvdata() is more intuitive. Signed-off-by: Axel Lin <[email protected]> Reviewed-by: Alistair Francis <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 31a89d2 commit 830c364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/sy7636a-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static int sy7636a_get_vcom_voltage_op(struct regulator_dev *rdev)
3535

3636
static int sy7636a_get_status(struct regulator_dev *rdev)
3737
{
38-
struct sy7636a *sy7636a = dev_get_drvdata(rdev->dev.parent);
38+
struct sy7636a *sy7636a = rdev_get_drvdata(rdev);
3939
int ret = 0;
4040

4141
ret = gpiod_get_value_cansleep(sy7636a->pgood_gpio);

0 commit comments

Comments
 (0)