mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 03:33:59 +08:00
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 <axel.lin@ingics.com> Reviewed-by: Alistair Francis <alistair@alistair23.me> Link: https://lore.kernel.org/r/20210616034458.3499522-3-axel.lin@ingics.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
31a89d297e
commit
830c364f4a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user