projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31a89d2
)
regulator: sy7636a: Use rdev_get_drvdata at proper place
author
Axel Lin
<axel.lin@ingics.com>
Wed, 16 Jun 2021 03:44:58 +0000
(11:44 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 16 Jun 2021 14:41:19 +0000
(15:41 +0100)
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>
drivers/regulator/sy7636a-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/sy7636a-regulator.c
b/drivers/regulator/sy7636a-regulator.c
index c71c0a007d957c1008e4a659f044f6d149fc90fb..e021ae08cbaa4d216688e077eade6866ece1ff70 100644
(file)
--- a/
drivers/regulator/sy7636a-regulator.c
+++ b/
drivers/regulator/sy7636a-regulator.c
@@
-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);