diff mbox series

video: clps711x-fb: Use syscon_regmap_lookup_by_phandle

Message ID 20220420070639.62440-1-eagle.alexander923@gmail.com (mailing list archive)
State New, archived
Headers show
Series video: clps711x-fb: Use syscon_regmap_lookup_by_phandle | expand

Commit Message

Alexander Shiyan April 20, 2022, 7:06 a.m. UTC
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(-)

Comments

Helge Deller April 25, 2022, 6:13 p.m. UTC | #1
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;
diff mbox series

Patch

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;