* [PATCH] video: clps711x-fb: Use syscon_regmap_lookup_by_phandle
@ 2022-04-20 7:06 Alexander Shiyan
2022-04-25 18:13 ` Helge Deller
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Shiyan @ 2022-04-20 7:06 UTC (permalink / raw)
To: linux-fbdev; +Cc: dri-devel, Helge Deller, Alexander Shiyan
Since version 5.13, the standard syscon bindings have been added
to all clps711x DT nodes, so we can now use the more general
syscon_regmap_lookup_by_phandle function to get the syscon pointer.
Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
drivers/video/fbdev/clps711x-fb.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/video/fbdev/clps711x-fb.c b/drivers/video/fbdev/clps711x-fb.c
index c5d15c6db287..771ce1f76951 100644
--- a/drivers/video/fbdev/clps711x-fb.c
+++ b/drivers/video/fbdev/clps711x-fb.c
@@ -268,8 +268,7 @@ static int clps711x_fb_probe(struct platform_device *pdev)
goto out_fb_release;
}
- cfb->syscon =
- syscon_regmap_lookup_by_compatible("cirrus,ep7209-syscon1");
+ cfb->syscon = syscon_regmap_lookup_by_phandle(np, "syscon");
if (IS_ERR(cfb->syscon)) {
ret = PTR_ERR(cfb->syscon);
goto out_fb_release;
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] video: clps711x-fb: Use syscon_regmap_lookup_by_phandle
2022-04-20 7:06 [PATCH] video: clps711x-fb: Use syscon_regmap_lookup_by_phandle Alexander Shiyan
@ 2022-04-25 18:13 ` Helge Deller
0 siblings, 0 replies; 2+ messages in thread
From: Helge Deller @ 2022-04-25 18:13 UTC (permalink / raw)
To: Alexander Shiyan, linux-fbdev; +Cc: dri-devel
On 4/20/22 09:06, Alexander Shiyan wrote:
> Since version 5.13, the standard syscon bindings have been added
> to all clps711x DT nodes, so we can now use the more general
> syscon_regmap_lookup_by_phandle function to get the syscon pointer.
>
> Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
applied.
Thanks,
Helge
> ---
> drivers/video/fbdev/clps711x-fb.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/video/fbdev/clps711x-fb.c b/drivers/video/fbdev/clps711x-fb.c
> index c5d15c6db287..771ce1f76951 100644
> --- a/drivers/video/fbdev/clps711x-fb.c
> +++ b/drivers/video/fbdev/clps711x-fb.c
> @@ -268,8 +268,7 @@ static int clps711x_fb_probe(struct platform_device *pdev)
> goto out_fb_release;
> }
>
> - cfb->syscon =
> - syscon_regmap_lookup_by_compatible("cirrus,ep7209-syscon1");
> + cfb->syscon = syscon_regmap_lookup_by_phandle(np, "syscon");
> if (IS_ERR(cfb->syscon)) {
> ret = PTR_ERR(cfb->syscon);
> goto out_fb_release;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-25 18:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-20 7:06 [PATCH] video: clps711x-fb: Use syscon_regmap_lookup_by_phandle Alexander Shiyan
2022-04-25 18:13 ` Helge Deller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).